API16

JObject/setError: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
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.


<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JObject/setError|Edit Descripton]]<nowiki>]</nowiki>
</span>


{{Description:JObject/setError}}
 
{{subst:Description:JObject/setError}}


===Syntax===
===Syntax===
Line 35: Line 33:
</source>
</source>


<span class="editsection" style="font-size:76%;">
 
<nowiki>[</nowiki>[[SeeAlso:JObject/setError|Edit See Also]]<nowiki>]</nowiki>
{{subst:SeeAlso:JObject/setError}}
</span>
{{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 />