Elgg
Version 6.1
|
Linear set of menu items collected from configuration and the "register" event. More...
Public Member Functions | |
__construct (array $params, $items) | |
Constructor. More... | |
setSortBy ($sort_by= 'text') | |
Set how this menu should be sorted. More... | |
getSortBy () | |
Get the designated (or default) sort strategy. More... | |
getName () | |
Get the menu name. More... | |
getItems () | |
Get the menu items. More... | |
getParams () | |
Get the menu parameters. More... | |
Linear set of menu items collected from configuration and the "register" event.
This also encapsulates parameters to be passed to events and views.
Definition at line 12 of file UnpreparedMenu.php.
Elgg\Menu\UnpreparedMenu::__construct | ( | array | $params, |
$items | |||
) |
Constructor.
array | $params | Parameters to be passed to the "prepare" event and views. Must include value for "name". |
Definition at line 31 of file UnpreparedMenu.php.
Elgg\Menu\UnpreparedMenu::getItems | ( | ) |
Elgg\Menu\UnpreparedMenu::getName | ( | ) |
Elgg\Menu\UnpreparedMenu::getParams | ( | ) |
Elgg\Menu\UnpreparedMenu::getSortBy | ( | ) |
Get the designated (or default) sort strategy.
Definition at line 66 of file UnpreparedMenu.php.
Elgg\Menu\UnpreparedMenu::setSortBy | ( | $sort_by = 'text' | ) |
Set how this menu should be sorted.
string | callable | $sort_by | Sort strategy "text", "name", "priority", or callback |
Definition at line 54 of file UnpreparedMenu.php.