DATA_PREFIX
DATA_PREFIX
Displays the top navigation. Gets data from Fuman_Navigation.
__construct() : \app_core_component_navigation
Gets Fuman_Navigation and parses it to a navigation structure.
For search action a special link will be created which opens a overlay to search.
setAttribute(string $key, string $value, boolean $appendValue = true, string $appendSpacer = ' ') : void
Sets an attribute. If $appendValue is true, the value is going to be appended with the $appendSpacer argument.
string | $key | |
string | $value | |
boolean | $appendValue | |
string | $appendSpacer |
addCssFile(string $path, string $media = 'all', string|null $packageName = null) : \Fuman_Response_Data
Add a CSS file
string | $path | |
string | $media | |
string|null | $packageName | Used for pack.php |
addJsFile(string $path, integer $javaScriptLoadType, string|null $packageName = null) : \Fuman_Response_Data
Add a Js file
string | $path | |
integer | $javaScriptLoadType | |
string|null | $packageName | Used for pack.php |
setTemplatePath(string $templatePath) : \Fuman_Response_Data
Sets script path
string | $templatePath |
_parseItems(array<mixed,\Fuman_Navigation_Item> $items, integer $level) : array<mixed,\Fuman_Response_Data>
Parses a list of Fuman_Navigation_Item to a navigation response data.
array<mixed,\Fuman_Navigation_Item> | $items | |
integer | $level |
_getItem(\Fuman_Navigation_Item $item) : \Fuman_Response_Data
Shortcut to create Fuman_Response_Data by an Fuman_Navigation_Item.
\Fuman_Navigation_Item | $item |