The Yaf_Config_Simple class
(Yaf >=1.0.0)
简介
Yaf_Config_Simple 是 Yad_Config_ini 的简洁版本,只允许传入数组进行初始化,并提供了设置readonly的参数。
类摘要
class Yaf_Config_Simple
extends
Yaf_Config_Abstract
implements
Iterator, Traversable, ArrayAccess, Countable {
/* 属性 */
protected
$_readonly;
/* 方法 */
/* 继承的方法 */
}属性
- _config
- _readonly
目录
- Yaf_Config_Simple::__construct — 构造函数
- Yaf_Config_Simple::count — 返回配置的节数量
- Yaf_Config_Simple::current — 返回当前节点
- Yaf_Config_Simple::__get — 读取节点配置
- Yaf_Config_Simple::__isset — 检查节点是否存在
- Yaf_Config_Simple::key — 返回当前元素的键
- Yaf_Config_Simple::next — 向前移动到下一个元素
- Yaf_Config_Simple::offsetExists — 检查一个偏移位置是否存在
- Yaf_Config_Simple::offsetGet — 获取一个偏移位置的值
- Yaf_Config_Simple::offsetSet — 设置一个偏移位置的值
- Yaf_Config_Simple::offsetUnset — 复位一个偏移位置的值
- Yaf_Config_Simple::readonly — 检查配置是否只读
- Yaf_Config_Simple::rewind — 检查当前位置是否有效
- Yaf_Config_Simple::__set — 设置节点配置
- Yaf_Config_Simple::toArray — 转换为数组的格式
- Yaf_Config_Simple::valid — 检查迭代器是否有效

User Contributed Notes 1 note
msn_and_i at hotmail dot com ¶
7 years ago
The Yaf_Config_Simple construct method parameters may be wrong documenting, actually first parameter shoud be array and second is string indicating if readonly.
备份地址:http://www.lvesu.com/blog/php/class.yaf-config-simple.php