Definition at line 9 of file ElggMenuBuilder.php.
ElggMenuBuilder::__construct |
( |
array |
$menu | ) |
|
static ElggMenuBuilder::compareByName |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
|
static |
Compare two menu items by their identifiers.
- Parameters
-
\ElggMenuItem | $a | Menu item |
\ElggMenuItem | $b | Menu item |
- Returns
- bool
Definition at line 287 of file ElggMenuBuilder.php.
static ElggMenuBuilder::compareByPriority |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
|
static |
Compare two menu items by their priority.
- Parameters
-
\ElggMenuItem | $a | Menu item |
\ElggMenuItem | $b | Menu item |
- Returns
- bool
- Since
- 1.9.0
Definition at line 306 of file ElggMenuBuilder.php.
static ElggMenuBuilder::compareByText |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
|
static |
Compare two menu items by their display text HTML tags are stripped before comparison.
- Parameters
-
\ElggMenuItem | $a | Menu item |
\ElggMenuItem | $b | Menu item |
- Returns
- bool
Definition at line 269 of file ElggMenuBuilder.php.
static ElggMenuBuilder::compareByWeight |
( |
|
$a, |
|
|
|
$b |
|
) |
| |
|
static |
Compare two menu items by their priority.
- Parameters
-
\ElggMenuItem | $a | Menu item |
\ElggMenuItem | $b | Menu item |
- Returns
- bool
Definition at line 324 of file ElggMenuBuilder.php.
ElggMenuBuilder::findSelected |
( |
| ) |
|
|
protected |
ElggMenuBuilder::getMenu |
( |
|
$sort_by = 'text' | ) |
|
Get a prepared menu array.
- Parameters
-
mixed | $sort_by | Method to sort the menu by. |
- See also
- ::sort()
- Returns
- array
Definition at line 33 of file ElggMenuBuilder.php.
ElggMenuBuilder::getSelected |
( |
| ) |
|
ElggMenuBuilder::selectFromContext |
( |
| ) |
|
|
protected |
Select menu items for the current context.
- Returns
- void
Definition at line 62 of file ElggMenuBuilder.php.
ElggMenuBuilder::setupSections |
( |
| ) |
|
|
protected |
ElggMenuBuilder::setupTrees |
( |
| ) |
|
|
protected |
ElggMenuBuilder::sort |
( |
|
$sort_by | ) |
|
|
protected |
Sort the menu sections and trees.
- Parameters
-
mixed | $sort_by | Sort type as string or php callback |
- Returns
- void
Definition at line 208 of file ElggMenuBuilder.php.
ElggMenuBuilder::$menu = array() |
|
protected |
ElggMenuBuilder::$selected = null |
|
protected |
The documentation for this class was generated from the following file: