Config_Container::createBlank()
Config_Container::createBlank() -- ブランク行をアイテムに追加する
概要
require_once 'Config/Container.php'; |
objectConfig_Container::createBlank ([mixed $where = 'bottom' [, mixed $target = NULL]])
説明
現在のアイテムがsectionでなければいけません。
この関数は、createItem()
をヘルパー関数として呼びます。
パラメータ
- string
$where
新しいアイテムを生成する位置。('top',
'bottom', 'before',
'after')
- object
$target
$whereで、
'before'か
'after'を指定した場合のみ必要。
返り値
object -
新しいアイテムのリファレンスを返します。
注意
この関数は、スタティックにコールする
ことはできません。
例
例 31-1createBlank()を使用して新しいディレクティブを作成する
<?php
$section =& new Config_Container('section', 'conf');
$directive =& $section->createDirective('user', 'mansion');
$section->createBlank('before', $directive);
?>
|
|