Build the multiple select list for Menu Links/Pages
static
string
linkoptions
([boolean $all = false], [boolean $unassigned = false])
-
boolean
$all: True if all can be selected
-
boolean
$unassigned: True if unassigned can be selected
Displays an HTML select list of menu items.
static
string
menuitemlist
(string $name, [string $selected = null], [string $attribs = null], [array $config = array()])
-
string
$name: The name of the control.
-
string
$selected: The value of the selected option.
-
string
$attribs: Attributes for the control.
-
array
$config: An array of options for the control.
Returns an array of menu items grouped by menu.
static
array
menuitems
([array $config = array()])
-
array
$config: An array of configuration options.
Get a list of the available menus.
static
string
menus
()
Build the select list for Menu Ordering
static
string
ordering
(object &$row, integer $id)
-
object
&$row: The row object
-
integer
$id: The id for the row. Must exist to enable menu ordering
Build the list representing the menu tree
static
array
treerecurse
(integer $id, string $indent, array $list, array &$children, [integer $maxlevel = 9999], [integer $level = 0], [string $type = 1])
-
integer
$id: Id of the menu item
-
string
$indent: The indentation string
-
array
$list: The list to process
-
array
&$children: The children of the current item
-
integer
$maxlevel: The maximum number of levels in the tree
-
integer
$level: The starting level
-
string
$type: Type of link: component, URL, alias, separator