Config_Container::setAttributes()

Config_Container::setAttributes() -- 获得条目的多个属性值

大纲

require_once 'Config/Container.php';

void Config_Container::setAttributes (数组 $attributes)

基本描述

属性值都保存在一个数组中。它们被用于PHP数组、 XML、Apache等等中。但不能被用于IniFile或IniCommented样的包容器中。 参见 getAttributes() 的例子了解属性值的输出。 本方法用用替换已存在的属性值。 如果你仅想改变它们的值可以使用 updateAttributes()

参数

数组 $attributes

以属性名称为下标,属性值为对应值的数组

注意

该函数不能被静态调用。