Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
Attributs protégés | |
$_errors = array() | |
This class allows for simple but smart objects with get and set methods and an internal error handler.
__construct | ( | $properties = null | ) |
Class constructor, overridden in descendant classes.
mixed | $properties | Either and associative array or another object to set the initial properties of the object. |
Références null.
__toString | ( | ) |
Magic method to convert the object to a string gracefully.
Références $this.
def | ( | $property, | |
$default = null |
|||
) |
get | ( | $property, | |
$default = null |
|||
) |
Returns a property of the object or the default value if the property is not set.
string | $property | The name of the property. |
mixed | $default | The default value. |
Références $default.
Référencé par MediaHelper\getContentTypeLink().
Get the most recent error message.
integer | $i | Option error index. |
boolean | $toString | Indicates if Exception objects should return their error message. |
Références $i, elseif, et null.
Référencé par User\delete(), et User\save().
getErrors | ( | ) |
Return all errors, if any.
getProperties | ( | $public = true | ) |
Returns an associative array of object properties.
boolean | $public | If true, returns only the public properties. |
Références $key, $this, et $value.
Référencé par User\delete(), et User\save().
set | ( | $property, | |
$value = null |
|||
) |
setError | ( | $error | ) |
Add an error message.
string | $error | Error message. |
Référencé par User\bind(), User\delete(), et User\save().
setProperties | ( | $properties | ) |
Set the object properties based on a named array/hash.
mixed | $properties | Either an associative array or another object. |
Référencé par User\bind(), et User\load().
|
protected |