PHP Класс c, kirby

Наследование: use trait t
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
get ( string $key = null, mixed $default = null ) : mixed Gets a config value by key
load ( string $file ) : array Loads an additional config file Returns the entire configuration array
set ( string $key, mixed $value = null ) Sets a config value by key

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

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

Gets a config value by key
static public get ( string $key = null, mixed $default = null ) : mixed
$key string The key to look for. Pass false to get the entire config array
$default mixed The default value, which will be returned if the key has not been found
Результат mixed The found config value

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

Loads an additional config file Returns the entire configuration array
static public load ( string $file ) : array
$file string The path to the config file
Результат array The entire config array

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

Sets a config value by key
static public set ( string $key, mixed $value = null )
$key string The key to define
$value mixed The value for the passed key