Config_Container::getAttributes() -- Récupère les attributs d'un élément
Description
Cette Méthode retourne un tableau contenant les attributs de ce conteneur.
Valeur retournée
tableau - attributs de l'élément
Note
Cette fonction ne peut pas être appelée de façon statique.
Exemple
Exemple 37-1. Utilisation des attributs
<?php
$attributes = array('id' => 'db', 'language' => 'en');
$section =& new Config_Container('section', 'main', null, $attributes);
$section->createDirective('authentication', 'test', array('type' => 'mysql',
'host' => 'localhost'));
echo $section->toString('phparray');
echo $section->toString('xml');
?>
|
|