array Config_Container::getAttributes (
void
)
この関数は、このコンテナーの総ての属性を配列で返します。
array
- アイテムの総ての属性を返します。
This function can not be called statically.
属性の使用法
<?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');
?>
総ての属性を'@'キーとPHP配列タイプで設定する
xmlタイプで通常の方法を用いて総ての属性をで設定する