PHP Класс PrivateBin\Configuration

parses configuration file, ensures default values present
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( ) parse configuration file and ensure default configuration values are present
get ( ) get configuration as array
getDefaults ( ) get default configuration as array
getKey ( string $key, string $section = 'main' ) get a key from the configuration, typically the main section or all keys
getSection ( string $section ) get a section from the configuration, must exist

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

__construct() публичный Метод

parse configuration file and ensure default configuration values are present
public __construct ( )

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

return array
public get ( )

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

return array
public static getDefaults ( )

getKey() публичный Метод

get a key from the configuration, typically the main section or all keys
public getKey ( string $key, string $section = 'main' )
$key string
$section string defaults to main

getSection() публичный Метод

get a section from the configuration, must exist
public getSection ( string $section )
$section string