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