Menu
Utility class working with menu select lists
abstract
| since |
1.5 |
|---|---|
| package |
Joomla CMS |
Methods
linkOptions
Build the multiple select list for Menu Links/Pages
linkOptions( all = false, unassigned = false, clientId) :
static
| since |
1.5 |
|---|
Arguments
- all
boolTrue if all can be selected- unassigned
boolTrue if unassigned can be selected- clientId
intThe client id
Response
string
ordering
Build the select list for Menu Ordering
ordering( &row, id) :
static
| since |
1.5 |
|---|
Arguments
- row
objectThe row object- id
intThe id for the row. Must exist to enable menu ordering
Response
string
treerecurse
Build the list representing the menu tree
treerecurse( id, indent, mixed||string|int list, mixed||string|int &children, maxlevel = 9999, level, type = 1) : mixed||string|int
static
| since |
1.5 |
|---|
Arguments
- id
intId of the menu item- indent
stringThe indentation string- list
array<string|int, mixed>The list to process- children
array<string|int, mixed>The children of the current item- maxlevel
intThe maximum number of levels in the tree- level
intThe starting level- type
intSet the type of spacer to use. Use 1 for |_ or 0 for -
Response
array<string|int, mixed>
Properties
items
Cached array of the menus items.
static
| since |
1.6 |
|---|
Type(s)
array<string|int, mixed>