|
|
(Next) Config_Container::getAttribute |
||||
| |
|||||
|
|||||
objectConfig_Container::createSection (
string $name
, array $attributes
= = null
, string $where = 'bottom'
, object $target
= = null
)
現在のアイテムが"section"でなければいけません。 createItem() をヘルパー関数として呼びます。
新規セクションの名前。
セクションの属性。
新しいアイテムを生成する位置。('top' , 'bottom' , 'before' , 'after' )
$where で、 'before' か 'after' を指定した場合のみ必要。
object - 新しいアイテムのリファレンスを返します。
| エラーコード | エラー値 | 意味 | 解決策 |
|---|---|---|---|
| " |
This function can not be called statically.
createSection() を使用して新しいディレクティブを作成する
<?php
$conf =& new Config_Container('section', 'MAIN');
$dbConf =& $conf->createSection('DB');
$dbConf->createDirective('user', 'mansion');
?>
|
|
(Next) Config_Container::getAttribute |
||||||||
| |
|||||||||
|
|||||||||