Config_Container::Config_Container()
Config_Container::Config_Container() -- 构造函数
大纲
require_once 'Config/Container.php'; |
&Config_Container::Config_Container ([字符串 $type = '' [, 字符串 $name = '' [, 字符串 $content = '' [, mixed $attributes = NULL]]]])
基本描述
创建一个新的Config_Container对象并返回一个使用索引。
参数
- 字符串 $type
-
包容器对象的类别,一般为'section', 'comment', 'directive', 'blank'中的一个。
- 字符串 $name
-
包容器对象的名字。节和段落需要设定名字,但空白区和注释部分则不需要。
- 字符串 $content
-
包容器对象的内容。directives和注释中的内容。
- 数组 $attributes
-
包含包容器对象属性的数组。你可以随意添加你的包容器的属性,这些属性会被选择解析器使用。