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
boolean
True if all can be selected- $unassigned
boolean
True 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
integer
The 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
integer
Id of the menu item- $indent
string
The indentation string- $list
array
The list to process- $children
- $maxlevel
integer
The maximum number of levels in the tree- $level
integer
The starting level- $type
string
Type of link: component, URL, alias, separator
Response
array
Properties
items
Cached array of the menus items.
static
since |
11.1 |
---|
Type(s)
array