PHP 7.4.0 alpha 1 Released

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 count ( void ) : void
public current ( void ) : void
public __get ([ string $name ] ) : void
public __isset ( string $name ) : void
public key ( void ) : void
public next ( void ) : void
public offsetExists ( string $name ) : void
public offsetGet ( string $name ) : void
public offsetSet ( string $name , string $value ) : void
public offsetUnset ( string $name ) : void
public readonly ( void ) : void
public rewind ( void ) : void
public __set ( string $name , string $value ) : void
public toArray ( void ) : void
public valid ( void ) : void
/* 继承的方法 */
abstract public Yaf_Config_Abstract::get ( string $name , mixed $value ) : mixed
abstract public Yaf_Config_Abstract::readonly ( void ) : bool
abstract public Yaf_Config_Abstract::set ( void ) : Yaf_Config_Abstract
abstract public Yaf_Config_Abstract::toArray ( void ) : array
}

属性

_config

_readonly

Table of Contents

add a note add a note

User Contributed Notes 1 note

up
1
msn_and_i at hotmail dot com
4 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.
To Top