文字

The Yaf_Config_Simple class

(Yaf >=1.0.0)

简介

Yaf_Config_Simple 是 Yad_Config_ini 的简洁版本,只允许传入数组进行初始化,并提供了设置readonly的参数。

类摘要

Yaf_Config_Simple extends Yaf_Config_Abstract implements Iterator , Traversable , ArrayAccess , Countable {
protected $_readonly ;
public __construct ( string $config_file [, string $section ] )
public void count ( void )
public void current ( void )
public void __get ([ string $name ] )
public void __isset ( string $name )
public void key ( void )
public void next ( void )
public void offsetExists ( string $name )
public void offsetGet ( string $name )
public void offsetSet ( string $name , string $value )
public void offsetUnset ( string $name )
public void readonly ( void )
public void rewind ( void )
public void __set ( string $name , string $value )
public void toArray ( void )
public void valid ( void )
abstract public mixed Yaf_Config_Abstract::get ( string $name , mixed $value )
abstract public bool Yaf_Config_Abstract::readonly ( void )
abstract public Yaf_Config_Abstract Yaf_Config_Abstract::set ( void )
abstract public array Yaf_Config_Abstract::toArray ( void )
}

属性

_config

_readonly

Table of Contents

  • 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 — 检查迭代器是否有效

用户评论:

[#1] msn_and_i at hotmail dot com [2015-04-15 06:47:08]

The Yaf_Config_Simple construct method parameters may be wrong documenting,  actually first parameter shoud be array and second is string indicating if readonly.

上一篇: 下一篇: