|
|
(Next) Config_Container::toString |
||||
| |
|||||
|
|||||
array Config_Container::toArray (
( void
)
Cette méthode retourne un tableau représentatif de l'arbre Config. Le format est :
<?php
$section[directive][index] = value
?>
array - un tableau représentatif de l'arbre Config_Container
This function can not be called statically.
Exemple avec toArray()()
<?php
$attributs = array('id' => 'db', 'language' => 'en');
$section =& new Config_Container('section', 'main', null, $attributs);
$section->createDirective('authentication', 'one', array('type' => 'mysql'));
$section->createDirective('authentication', 'two', array('type' => 'oracle'));
$section->createDirective('permission', 'group');
var_dump($section->toArray());
?>
Tableau de résultat avec des attibuts et des directives avec des noms identiques ou non
|
|
(Next) Config_Container::toString |
||||||||
| |
|||||||||
|
|||||||||