JHtmlMenu

Utility class working with menu select lists

abstract
package

Joomla.Platform

subpackage

HTML

since

11.1

Methods

linkoptions

Build the multiple select list for Menu Links/Pages

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

11.1

Arguments

$all

booleanTrue if all can be selected

$unassigned

booleanTrue if unassigned can be selected

Response

string

menuitemlist

Displays an HTML select list of menu items.

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

Arguments

$name

stringThe name of the control.

$selected

stringThe value of the selected option.

$attribs

stringAttributes for the control.

$config

arrayAn array of options for the control.

Response

string

menuitems

Returns an array of menu items grouped by menu.

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

Arguments

$config

arrayAn array of configuration options.

Response

array

menus

Get a list of the available menus.

menus() : string
static
since

11.1

Response

string

ordering

Build the select list for Menu Ordering

ordering( &$row, integer $id) : string
static
since

11.1

Arguments

$row

$id

integerThe id for the row. Must exist to enable menu ordering

Response

string

treerecurse

Build the list representing the menu tree

treerecurse(integer $id, string $indent, array $list,  &$children, integer $maxlevel = 9999, integer $level, string $type = 1) : array
static
since

11.1

Arguments

$id

integerId of the menu item

$indent

stringThe indentation string

$list

arrayThe list to process

$children

$maxlevel

integerThe maximum number of levels in the tree

$level

integerThe starting level

$type

stringType of link: component, URL, alias, separator

Response

array

Properties

menus

Cached array of the menus.

static
since

11.1

Type(s)

array

items

Cached array of the menus items.

static
since

11.1

Type(s)

array