Class: atkmenuinterface
Source Location: /menu/class.atkmenuinterface.inc
Class atkmenuinterface
Method Summary
| int |
getHeight() |
If the menu is displayed in the top frame of the application, this method should return the height of the frame that the menu requires. |
| Translation |
getMenuTranslation() |
Translates a menuitem with the menu_ prefix, or if not found without |
| boolean |
getMultilevel() |
Determine if the menu can handle multiple levels of submenu. |
| int |
getPosition() |
Retrieve the position in which the menu is displayed. |
| int |
getScrollable() |
Retrieve the scrolling possibilities of the menu. |
| enabled? |
isEnabled() |
Recursively checks if a menuitem should be enabled or not. |
| String |
render() |
Render the menu |
Properties
Redefined in descendants as:
Methods
string getFooter(
string
$atkmenutop
)
|
|
Return the menu footer
Parameters:
API Tags:
string getHeader(
string
$atkmenutop
)
|
|
Return the menu header
Parameters:
API Tags:
Redefined in descendants as:
If the menu is displayed in the top frame of the application, this method should return the height of the frame that the menu requires.
The framework calls this method to determine the frameset dimensions.
API Tags:
| Return: | The required frame height. |
Redefined in descendants as:
Translation getMenuTranslation(
String
$menuitem, [String
$modname = 'atk']
)
|
|
Translates a menuitem with the menu_ prefix, or if not found without
Parameters:
|
String |
$menuitem: |
Menuitem to translate |
|
String |
$modname: |
Module to which the menuitem belongs |
API Tags:
| Return: | of the given menuitem |
Determine if the menu can handle multiple levels of submenu.
API Tags:
| Return: | True if multiple levels are supported, false if each menu can only have one level of submenuitems. |
Redefined in descendants as:
Retrieve the position in which the menu is displayed.
The framework calls this method to determine the structure of the frameset.
API Tags:
| Return: | The MENU_* frameposition. |
Redefined in descendants as:
Retrieve the scrolling possibilities of the menu.
API Tags:
| Return: | the MENU_* scroll definition |
Redefined in descendants as:
enabled? isEnabled(
array
$menuitem
)
|
|
Recursively checks if a menuitem should be enabled or not.
Parameters:
|
array |
$menuitem: |
menuitem array |
Render the menu
API Tags:
| Return: | HTML fragment containing the menu. |
Redefined in descendants as: