|
|
(Next) Config_Container::getChild |
||||
| |
|||||
|
|||||
array Config_Container::getAttributes (
( void
)
This method returns an array containing the attributes of this container.
array - item's attributes
This function can not be called statically.
Using attribute
<?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');
?>
Attributes are set for '@' key with php array type
Attributes are set the usual way with xml type
|
|
(Next) Config_Container::getChild |
||||||||
| |
|||||||||
|
|||||||||