PHP Класс FOF30\Configuration\Domain\Views

С версии: 2.1
Наследование: implements FOF30\Configuration\Domain\DomainInterface
Показать файл Открыть проект

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

Метод Описание
get ( &$configuration, string $var, mixed $default ) : mixed Return a configuration variable
parseDomain ( SimpleXMLElement $xml, array &$ret ) : void Parse the XML data, adding them to the $ret array

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

Метод Описание
getAcl ( string $view, &$configuration, array $params, string $default = '' ) : string Internal method to return the ACL mapping (privilege required to access a specific task) for the given view's tasks
getConfig ( string $view, &$configuration, array $params, mixed $default = null ) : string Internal method to return the a configuration option for the view. These are equivalent to $config array options passed to the Controller
getTaskmap ( string $view, &$configuration, array $params, array $default = [] ) : array Internal function to return the task map for a view
getToolbar ( string $view, &$configuration, array $params, string $default = '' ) : string Internal method to return the toolbar infos.

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

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

Return a configuration variable
public get ( &$configuration, string $var, mixed $default ) : mixed
$var string The variable we want to fetch
$default mixed Default value
Результат mixed The variable's value

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

Internal method to return the ACL mapping (privilege required to access a specific task) for the given view's tasks
protected getAcl ( string $view, &$configuration, array $params, string $default = '' ) : string
$view string The view for which we will be fetching a task map
$params array Extra options; key 0 defines the task we want to fetch
$default string Default ACL option; empty (no ACL check) if not defined
Результат string The privilege required to access this view

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

Internal method to return the a configuration option for the view. These are equivalent to $config array options passed to the Controller
protected getConfig ( string $view, &$configuration, array $params, mixed $default = null ) : string
$view string The view for which we will be fetching a task map
$params array Extra options; key 0 defines the option variable we want to fetch
$default mixed Default option; null if not defined
Результат string The setting for the requested option

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

Internal function to return the task map for a view
protected getTaskmap ( string $view, &$configuration, array $params, array $default = [] ) : array
$view string The view for which we will be fetching a task map
$params array Extra options (not used)
$default array ßDefault task map; empty array if not provided
Результат array The task map as a hash array in the format task => method

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

Internal method to return the toolbar infos.
protected getToolbar ( string $view, &$configuration, array $params, string $default = '' ) : string
$view string The view for which we will be fetching buttons
$params array Extra options
$default string Default option
Результат string The toolbar data for this view

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

Parse the XML data, adding them to the $ret array
public parseDomain ( SimpleXMLElement $xml, array &$ret ) : void
$xml SimpleXMLElement The XML data of the component's configuration area
$ret array
Результат void