API15:JObject/setError
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
Contents |
Description
Add an error message
Syntax
setError($error)
| Parameter Name | Default Value | Description |
|---|---|---|
| $error | $error Error message public |
Defined in
libraries/joomla/base/object.php
Importing
jimport( 'joomla.base.object' );
Source Body
function setError($error) { array_push($this->_errors, $error); }
[Edit See Also] SeeAlso:JObject/setError
Examples
<CodeExamplesForm />
