PHP 8.6.0 Beta 3 is available for testing

La classe Yaf_Config_Simple

(Yaf >=1.0.0)

Introduction

Yaf_Config_Simple est un adaptateur de configuration reposant sur un tableau PHP (ou, éventuellement, sur un fichier INI). Contrairement à Yaf_Config_Ini, il est modifiable par défaut : les valeurs peuvent être changées à l'exécution, ce qui le rend adapté aussi bien à une configuration construite par programmation qu'à une configuration devant être ajustée pendant la requête.

Synopsis de la classe

class Yaf_Config_Simple extends Yaf_Config_Abstract implements Iterator, ArrayAccess, Countable {
/* Propriétés */
protected $_readonly;
/* Méthodes */
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
/* Méthodes héritées */
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
}

Propriétés

_config

_readonly

Sommaire

add a note

User Contributed Notes 1 note

up
0
msn_and_i at hotmail dot com
11 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