API16

API16:JObject/setError

From Joomla! Documentation

Revision as of 22:37, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Add an error message. <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span>...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Add an error message.

[Edit Descripton]

Template: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);
}

[Edit See Also] Template:SeeAlso:JObject/setError

Examples

<CodeExamplesForm />