class JHtmlMenu


Located at : UKNOWVA_ROOT/libraries/joomla/html/html/menu.php

Utility class working with menu select lists

Methods

static string
menus()

Get a list of the available menus.

static array
menuitems(array $config = array())

Returns an array of menu items grouped by menu.

static string
menuitemlist(string $name, string $selected = null, string $attribs = null, array $config = array())

Displays an HTML select list of menu items.

static 
ordering(object $row, integer $id)

Build the select list for Menu Ordering

static string
linkoptions(boolean $all = false, boolean $unassigned = false)

Build the multiple select list for Menu Links/Pages

static array
treerecurse($id, $indent, $list, $children, $maxlevel = 9999, $level, $type = 1)

Build the list representing the menu tree

Details

at line 44
static string menus()

Get a list of the available menus.

Return Value

string

at line 67
static array menuitems(array $config = array())

Returns an array of menu items grouped by menu.

Parameters

array $config An array of configuration options.

Return Value

array

at line 144
static string menuitemlist(string $name, string $selected = null, string $attribs = null, array $config = array())

Displays an HTML select list of menu items.

Parameters

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.

Return Value

string

at line 170
static ordering(object $row, integer $id)

Build the select list for Menu Ordering

Parameters

object $row The row object
integer $id The id for the row. Must exist to enable menu ordering

at line 207
static string linkoptions(boolean $all = false, boolean $unassigned = false)

Build the multiple select list for Menu Links/Pages

Parameters

boolean $all True if all can be selected
boolean $unassigned True if unassigned can be selected

Return Value

string

at line 299
static array treerecurse($id, $indent, $list, $children, $maxlevel = 9999, $level, $type = 1)

Build the list representing the menu tree

Parameters

$id
$indent
$list
$children
$maxlevel
$level
$type

Return Value

array