The Yaf_Config_Simple class

(Yaf >=1.0.0)

Вступ

Yaf_Config_Simple is a configuration adapter backed by a PHP array (or, optionally, an INI file). In contrast to Yaf_Config_Ini it is mutable by default: values can be changed at runtime, which makes it suitable both for programmatically built configuration and for configuration that needs to be adjusted during the request.

Короткий огляд класу

class Yaf_Config_Simple extends Yaf_Config_Abstract implements Iterator, ArrayAccess, Countable {
/* Властивості */
protected $_readonly;
/* Методи */
publicfunction __construct(array $values, bool $readonly = false)
public function count(): int
public function current(): mixed
public function get(string $name = NULL): mixed
public function __isset(string $name): bool
public function key(): mixed
public function next(): void
public function offsetExists(mixed $name): bool
public function offsetGet(mixed $name): mixed
public function offsetSet(mixed $name, mixed $value): void
public function offsetUnset(mixed $name): void
public function readonly(): bool
public function rewind(): void
public function set(string $name, mixed $value): bool
public function toArray(): array
public function valid(): bool
/* Успадковані методи */
public function Yaf_Config_Abstract::get(string $name = NULL): mixed
abstract public function Yaf_Config_Abstract::readonly(): bool
abstract public function Yaf_Config_Abstract::set(string $name, mixed $value): bool
}

Властивості

_config

_readonly

Зміст