JObject/setError: Difference between revisions
From Joomla! Documentation
New page: ===Description===
Add an error message.
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>... |
m clean up |
||
| Line 2: | Line 2: | ||
Add an error message. | Add an error message. | ||
{{Description:JObject/setError}} | |||
{{subst:Description:JObject/setError}} | |||
===Syntax=== | ===Syntax=== | ||
| Line 35: | Line 33: | ||
</source> | </source> | ||
{{subst:SeeAlso:JObject/setError}} | |||
{{SeeAlso:JObject/setError}} | |||
===Examples=== | ===Examples=== | ||
Revision as of 14:16, 24 March 2017
Description
Add an error message.
{{subst:Description:JObject/setError}}
Syntax
setError($error)
| Parameter Name | Default Value | Description |
|---|---|---|
| $error | $error Error message. |
Defined in
libraries/joomla/base/object.php
Importing
jimport( 'joomla.base.object' );
Source Body
public function setError($error)
{
array_push($this->_errors, $error);
}
{{subst:SeeAlso:JObject/setError}}
Examples
<CodeExamplesForm />