[ Index ]
 

Code source de PHP PEAR 1.4.5

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Config/Container/ -> PHPArray.php (sommaire)

(pas de description)

Poids: 255 lignes (10 kb)
Inclus ou requis:0 fois
Référencé: 4 fois
Nécessite: 0 fichiers

Définit 1 class

Config_Container_PHPArray:: (6 méthodes):
  Config_Container_PHPArray()
  parseDatasrc()
  _parseArray()
  toString()
  _getParentString()
  writeDatasrc()


Classe: Config_Container_PHPArray  - X-Ref

Config parser for common PHP configuration array
such as found in the horde project.

Options expected is:
'name' => 'conf'
Name of the configuration array.
Default is $conf[].
'useAttr' => true
Whether we render attributes

Config_Container_PHPArray($options = array()   X-Ref
Constructor

param: string  $options    Options to be used by renderer

parseDatasrc($datasrc, &$obj)   X-Ref
Parses the data of the given configuration file

param: string $datasrc    path to the configuration file
param: object $obj        reference to a config object
return: mixed    returns a PEAR_ERROR, if error occurs or true if ok

_parseArray($array, &$container)   X-Ref
Parses the PHP array recursively

param: array  $array      array values from the config file
param: object $container  reference to the container object
return: void

toString(&$obj)   X-Ref
Returns a formatted string of the object

param: object  $obj    Container object to be output as string
return: string

_getParentString(&$obj)   X-Ref
Returns a formatted string of the object parents

return: string

writeDatasrc($datasrc, &$obj)   X-Ref
Writes the configuration to a file

param: mixed  datasrc        info on datasource such as path to the configuraton file
param: string configType     (optional)type of configuration
return: string



Généré le : Sun Feb 25 14:08:00 2007 par Balluche grâce à PHPXref 0.7