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 Ini
+ Graphe d'héritage de Ini:

Fonctions membres publiques

 objectToString ($object, $options=array())
 
 stringToObject ($data, array $options=array())
 

Fonctions membres protégées

 getValueAsIni ($value)
 

Attributs protégés statiques

static $options
 
static $cache = array()
 
- Attributs protégés statiques hérités de AbstractRegistryFormat
static $instances = array()
 

Membres hérités additionnels

- Fonctions membres publiques statiques hérités de AbstractRegistryFormat
static getInstance ($type, array $options=array())
 

Description détaillée

INI format handler for Registry.

Depuis
1.0

Documentation des fonctions membres

◆ getValueAsIni()

getValueAsIni (   $value)
protected

Method to get a value in an INI format.

Paramètres
mixed$valueThe value to convert to INI format.
Renvoie
string The value in INI format.
Depuis
1.0

Références $value.

Référencé par Ini\objectToString().

◆ objectToString()

objectToString (   $object,
  $options = array() 
)

Converts an object into an INI formatted string

  • Unfortunately, there is no way to have ini values nested further than two levels deep. Therefore we will only go through the first two levels of the object.
Paramètres
object$objectData source object.
array$optionsOptions used by the formatter.
Renvoie
string INI formatted string.
Depuis
1.0

Implémente FormatInterface.

Références $assoc, $item, $key, $options, Ini\$options, $value, elseif, Ini\getValueAsIni(), et ArrayHelper\isAssociative().

◆ stringToObject()

stringToObject (   $data,
array  $options = array() 
)

Parse an INI formatted string and convert it into an object.

Paramètres
string$dataINI formatted string to convert.
array$optionsAn array of options used by the formatter, or a boolean setting to process sections.
Renvoie
object Data object.
Depuis
1.0

Implémente FormatInterface.

Références $data, $hash, $key, $options, Ini\$options, $section, $value, et elseif.

Documentation des champs

◆ $cache

$cache = array()
staticprotected

◆ $options

$options
staticprotected
Valeur initiale :
= array(
'supportArrayValues' => false,
'parseBooleanWords' => false,
'processSections' => false,
)

Référencé par Ini\objectToString(), et Ini\stringToObject().


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