TYPO3
7.6
|
Public Member Functions | |
getLabel () | |
setLabel ($label) | |
setIdentifier ($identifier) | |
addMenuItem (MenuItem $menuItem) | |
getMenuItems () | |
getIdentifier () | |
makeMenuItem () | |
isValid (Menu $menu) | |
Protected Attributes | |
$identifier = '' | |
$label = '' | |
$menuItems = [] | |
addMenuItem | ( | MenuItem | $menuItem | ) |
Adds a new menuItem
MenuItem | $menuItem | The menuItem to add to the menu |
\InvalidArgumentException | In case a menuItem is not valid |
Definition at line 90 of file Menu.php.
References AbstractControl\getTitle(), and MenuItem\isValid().
getIdentifier | ( | ) |
Get identifier
Definition at line 115 of file Menu.php.
References Menu\$identifier.
Referenced by MenuRegistry\addMenu(), and Menu\isValid().
getLabel | ( | ) |
getMenuItems | ( | ) |
isValid | ( | Menu | $menu | ) |
Validation function
Menu | $menu | The menu to validate |
Definition at line 138 of file Menu.php.
References Menu\getIdentifier().
Referenced by MenuRegistry\addMenu().
makeMenuItem | ( | ) |
MenuItem Factory Method
Definition at line 125 of file Menu.php.
References GeneralUtility\makeInstance().
setIdentifier | ( | $identifier | ) |
Set identifier
string | $identifier | Menu Identifier |
Definition at line 75 of file Menu.php.
References Menu\$identifier.
setLabel | ( | $label | ) |
Set label
string | $label | LabelText for the menu (accepts LLL syntax) |
Definition at line 62 of file Menu.php.
References Menu\$label.
|
protected |
Definition at line 29 of file Menu.php.
Referenced by Menu\getIdentifier(), and Menu\setIdentifier().
|
protected |
Definition at line 36 of file Menu.php.
Referenced by Menu\getLabel(), and Menu\setLabel().
|
protected |
Definition at line 43 of file Menu.php.
Referenced by Menu\getMenuItems().