phpDocumentor

XmlMenuListener

Class XmlMenuListener

Tags
deprecated

Support for XML menu files will ends in upcoming feature version. Use JSON menu files instead.

codeCoverageIgnore

Table of Contents

$environment  : Environment
$fileFinder  : XmlMenuFinder
$menuFactory  : CacheMenuFactory
$smartyEngine  : SmartyEngine
__construct()  : mixed
XmlMenuListener constructor.
__invoke()  : CoreMenuDataCollected
Events callback function.
addFile()  : void
Processes a menu file and adds them to the menu cache.
addGroup()  : void
Adds a menu group.
fixTitle()  : void
Fixes the "title" element in $dataset.
hasAttributes()  : bool
Returns true if data set contains key "@attributes".
isGroupDataSet()  : bool
Returns true if $dataset represents a menu group.

Properties

Methods

fixTitle()

Fixes the "title" element in $dataset.

private fixTitle(array<string|int, mixed> &$dataset) : void

This is important due to compatibility reasons. The "txt." prefix will be replaced with "admin_menu.", so the text manager can translate the title later.

Parameters
$dataset : array<string|int, mixed>
Return values
void

hasAttributes()

Returns true if data set contains key "@attributes".

private hasAttributes(array<string|int, mixed> $dataset) : bool
Parameters
$dataset : array<string|int, mixed>
Return values
bool

isGroupDataSet()

Returns true if $dataset represents a menu group.

private isGroupDataSet(array<string|int, mixed> $dataset) : bool
Parameters
$dataset : array<string|int, mixed>
Return values
bool

Search results