Config_Container::createBlank()
Config_Container::createBlank() -- 创建空白行
大纲
require_once 'Config/Container.php'; |
对象 Config_Container::createBlank ([mixed $where = 'bottom' [, mixed $target = NULL]])
参数
- 字符串 $where
-
创建新条目的地点(一般为'top',
'bottom', 'before',
'after')。
- 对象 $target
-
仅当 $where 参数使用'before' 或 'after' 时使用。
Throws
表 24-1. 可能出现的 PEAR_Error 值
| Error code | Error value | Meaning | Solution |
|---|
| | "" | | |
例子
例子 24-1. Create a new directive using createBlank() $section =& new Config_Container('section', 'conf');
$directive =& $section->createDirective('user', 'mansion');
$section->createBlank('before', $directive); |
|