objet
Config_Container::createSection (
chaîne
$nom
, array $attributes
= = null
, chaîne $emplacement = 'bottom'
, objet $cible
= = null
)
Doit être appelé sur une section. C'est une méthode d'aide qui appelle createItem()
Nom de la section
Attributs de la section
Positionnnement de l'élément ajouté (absolu :'top' , 'bottom' , ou relatif : 'before' , 'after' )
Ce paramètre est requis si l'$emplacement est relatif, soit 'before' ou 'after' .
objet - référence au nouvel élément.
This function can not be called statically.
Créer une nouvelle section en utilisant createSection()
<?php
$conf =& new Config_Container('section', 'MAIN');
$dbConf =& $conf->createSection('DB');
$dbConf->createDirective('utilisateur', 'mansion');
?>