PHP Класс Habari\Config

Configuration registry class
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$prefix
$registry Registry of configuration data

Открытые методы

Метод Описание
clear ( string $key ) : void Unset data
exists ( string $key ) : boolean See if a key exists
get ( string $key, null $default = null ) : mixed Fetch data from registry
set ( string $key, mixed $val ) : boolean Set data in registry

Приватные методы

Метод Описание
__construct ( ) Static; private constructor

Описание методов

clear() публичный статический Метод

Unset data
public static clear ( string $key ) : void
$key string key name
Результат void

exists() публичный статический Метод

See if a key exists
public static exists ( string $key ) : boolean
$key string key name
Результат boolean

get() публичный статический Метод

Fetch data from registry
public static get ( string $key, null $default = null ) : mixed
$key string key name
$default null
Результат mixed (empty object on invalid key)

set() публичный статический Метод

Note: arrays become objects for easy fetching
public static set ( string $key, mixed $val ) : boolean
$key string key name
$val mixed value to store
Результат boolean true if new key, false if key already exists

Описание свойств

$prefix защищенное статическое свойство

protected static $prefix

$registry защищенное статическое свойство

Registry of configuration data
protected static $registry