JHtmlMenu
Utility class working with menu select lists
abstract
| package |
Joomla.Platform |
|---|---|
| subpackage |
HTML |
| since |
11.1 |
Methods
linkoptions
Build the multiple select list for Menu Links/Pages
linkoptions(boolean $all = false, boolean $unassigned = false) : string
static
| since |
11.1 |
|---|
Arguments
- $all
booleanTrue if all can be selected- $unassigned
booleanTrue if unassigned can be selected
Response
string
ordering
Build the select list for Menu Ordering
ordering( &$row, integer $id) : string
static
| since |
11.1 |
|---|
Arguments
- $row
- $id
integerThe id for the row. Must exist to enable menu ordering
Response
string
treerecurse
Build the list representing the menu tree
treerecurse(integer $id, string $indent, array $list, &$children, integer $maxlevel = 9999, integer $level, string $type = 1) : array
static
| since |
11.1 |
|---|
Arguments
- $id
integerId of the menu item- $indent
stringThe indentation string- $list
arrayThe list to process- $children
- $maxlevel
integerThe maximum number of levels in the tree- $level
integerThe starting level- $type
stringType of link: component, URL, alias, separator
Response
array
Properties
items
Cached array of the menus items.
static
| since |
11.1 |
|---|
Type(s)
array