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