|
Elgg
Version 2.3
|
Linear set of menu items collected from configuration and the "register" hook. More...
Public Member Functions | |
| __construct (array $params, array $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" hook.
This also encapsulates parameters to be passed to hooks and views.
Definition at line 11 of file UnpreparedMenu.php.
| Elgg\Menu\UnpreparedMenu::__construct | ( | array | $params, |
| array | $items | ||
| ) |
Constructor.
| array | $params | Parameters to be passed to the "prepare" hook and views. Must include value for "name". |
| ElggMenuItem[] | $items | Menu items |
@access private
Definition at line 33 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 59 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 47 of file UnpreparedMenu.php.