PHP Класс FOF30\Configuration\Configuration

С версии: 2.1
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$configurations array Cache of FOF components' configuration variables

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

Свойство Тип Описание
$container FOF30\Container\Container The component's container

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

Метод Описание
__construct ( Container $c )
get ( string $variable, mixed $default = null ) : mixed Returns the value of a variable. Variables use a dot notation, e.g.

Защищенные методы

Метод Описание
getDomains ( ) : array Gets a list of the available configuration domain adapters
parseComponent ( ) : void Parses the configuration of the specified component
parseComponentArea ( string $area, boolean $userConfig = false ) : array Parses the configuration options of a specific component area

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

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

public __construct ( Container $c )
$c FOF30\Container\Container

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

view.config.whatever where the first part is the domain, the rest of the parts specify the path to the variable.
public get ( string $variable, mixed $default = null ) : mixed
$variable string The variable name
$default mixed The default value, or null if not specified
Результат mixed The value of the variable

getDomains() защищенный Метод

Gets a list of the available configuration domain adapters
protected getDomains ( ) : array
Результат array A list of the available domains

parseComponent() защищенный Метод

Parses the configuration of the specified component
protected parseComponent ( ) : void
Результат void

parseComponentArea() защищенный Метод

Parses the configuration options of a specific component area
protected parseComponentArea ( string $area, boolean $userConfig = false ) : array
$area string Which area to parse (frontend, backend, cli)
$userConfig boolean When true the user configuration (fof.user.xml) file will be read
Результат array A hash array with the configuration data

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

$configurations публичное статическое свойство

Cache of FOF components' configuration variables
public static array $configurations
Результат array

$container защищенное свойство

The component's container
protected Container,FOF30\Container $container
Результат FOF30\Container\Container