Return a configuration variable
mixed
get
(string &$configuration, string $var, mixed $default)
-
string
&$configuration: Configuration variables (hashed array)
-
string
$var: The variable we want to fetch
-
mixed
$default: Default value
Implementation of:
- FOFConfigDomainInterface::get()
- Return a configuration variable
Internal method to return the ACL mapping (privilege required to access a specific task) for the given view's tasks
string
getAcl
(string $view, array &$configuration, array $params, [string $default = ''])
-
string
$view: The view for which we will be fetching a task map
-
array
&$configuration: The configuration parameters hash array
-
array
$params: Extra options; key 0 defines the task we want to fetch
-
string
$default: Default ACL option; empty (no ACL check) if not defined
Internal method to return the a configuration option for the view. These are equivalent to $config array options passed to the Controller
string
getConfig
(string $view, array &$configuration, array $params, [mixed $default = null])
-
string
$view: The view for which we will be fetching a task map
-
array
&$configuration: The configuration parameters hash array
-
array
$params: Extra options; key 0 defines the option variable we want to fetch
-
mixed
$default: Default option; null if not defined
Internal function to return the task map for a view
array
getTaskmap
(string $view, array &$configuration, array $params, [array $default = array()])
-
string
$view: The view for which we will be fetching a task map
-
array
&$configuration: The configuration parameters hash array
-
array
$params: Extra options (not used)
-
array
$default: ßDefault task map; empty array if not provided
Internal method to return the toolbar infos.
string
getToolbar
(string $view, array &$configuration, array $params, [string $default = ''])
-
string
$view: The view for which we will be fetching buttons
-
array
&$configuration: The configuration parameters hash array
-
array
$params: Extra options
-
string
$default: Default option
Parse the XML data, adding them to the $ret array
void
parseDomain
(SimpleXMLElement $xml, array &$ret)
-
SimpleXMLElement
$xml: The XML data of the component's configuration area
-
array
&$ret: The parsed data, in the form of a hash array
Implementation of:
- FOFConfigDomainInterface::parseDomain()
- Parse the XML data, adding them to the $ret array