Config_Container::getAttributes() -- Get item attributes
Description
This method returns an array containing the attributes of this container.
Return value
array - item's attributes
Note
This function can not be called
statically.
Example
Example 31-1. Using attribute $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'); |
|