Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe FOFUtilsObject
+ Graphe d'héritage de FOFUtilsObject:

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()
 

Description détaillée

Temporary class for backwards compatibility. You should not be using this in your code. It is currently present to handle the validation error stack for FOFTable::check() and will be removed in an upcoming version.

This class is based on JObject as found in Joomla! 3.2.1

Obsolète:
2.1

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $properties = null)

Class constructor, overridden in descendant classes.

Paramètres
mixed$propertiesEither and associative array or another object to set the initial properties of the object.

Références null.

Documentation des fonctions membres

◆ __toString()

__toString ( )

Magic method to convert the object to a string gracefully.

Renvoie
string The classname.

◆ def()

def (   $property,
  $default = null 
)

Sets a default value if not alreay assigned

Paramètres
string$propertyThe name of the property.
mixed$defaultThe default value.
Renvoie
mixed

Références $default, et $value.

◆ get()

get (   $property,
  $default = null 
)

Returns a property of the object or the default value if the property is not set.

Paramètres
string$propertyThe name of the property.
mixed$defaultThe default value.
Renvoie
mixed The value of the property.

Références $default.

◆ getError()

getError (   $i = null,
  $toString = true 
)

Get the most recent error message.

Paramètres
integer$iOption error index.
boolean$toStringIndicates if JError objects should return their error message.
Renvoie
string Error message

Références $i, elseif, et null.

◆ getErrors()

getErrors ( )

Return all errors, if any.

Renvoie
array Array of error messages or JErrors.

◆ getProperties()

getProperties (   $public = true)

Returns an associative array of object properties.

Paramètres
boolean$publicIf true, returns only the public properties.
Renvoie
array

Références $key, et $value.

◆ set()

set (   $property,
  $value = null 
)

Modifies a property of the object, creating it if it does not already exist.

Paramètres
string$propertyThe name of the property.
mixed$valueThe value of the property to set.
Renvoie
mixed Previous value of the property.

Références $value, et null.

◆ setError()

setError (   $error)

Add an error message.

Paramètres
string$errorError message.
Renvoie
void

Référencé par FOFTable\canDelete(), FOFTable\check(), FOFTable\copy(), FOFTable\publish(), et FOFTable\store().

◆ setProperties()

setProperties (   $properties)

Set the object properties based on a named array/hash.

Paramètres
mixed$propertiesEither an associative array or another object.
Renvoie
boolean

Documentation des champs

◆ $_errors

$_errors = array()
protected

La documentation de cette classe a été générée à partir du fichier suivant :