JHtmlMenu
Utility class working with menu select lists
abstract
since |
1.5 |
---|---|
package |
Joomla.Libraries |
Methods
linkOptions
Build the multiple select list for Menu Links/Pages
linkOptions(boolean $all = false, boolean $unassigned = false, integer $clientId) : string
static
since |
1.5 |
---|
Arguments
- $all
boolean
True if all can be selected- $unassigned
boolean
True if unassigned can be selected- $clientId
integer
The client id
Response
string
ordering
Build the select list for Menu Ordering
ordering( &$row, integer $id) : string
static
since |
1.5 |
---|
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, integer $type = 1) : array
static
since |
1.5 |
---|
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
integer
Set the type of spacer to use. Use 1 for |_ or 0 for -
Response
array
Properties
items
Cached array of the menus items.
static
since |
1.6 |
---|
Type(s)
array