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
bool
True if all can be selected- unassigned
bool
True if unassigned can be selected- clientId
int
The client id
Response
string
ordering
Build the select list for Menu Ordering
ordering( &row, id) :
static
since |
1.5 |
---|
Arguments
- row
object
The row object- id
int
The 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
int
Id of the menu item- indent
string
The indentation string- list
array<string|int, mixed>
The list to process- children
array<string|int, mixed>
The children of the current item- maxlevel
int
The maximum number of levels in the tree- level
int
The starting level- type
int
Set 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>