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(bool all = false, bool unassigned = false, int clientId) : string
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(object &row, int id) : string
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(int id, string indent, array list, array &children, int maxlevel = 9999, int level, int type = 1) : array
static
since |
1.5 |
---|
Arguments
- id
int
Id of the menu item- indent
string
The indentation string- list
array
The list to process- children
array
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