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

boolTrue if all can be selected

unassigned

boolTrue if unassigned can be selected

clientId

intThe client id

Response

string

menuItemList

Displays an HTML select list of menu items.

menuItemList( name,  selected = null,  attribs = null, mixed||string|int config = []) : 
static
since

1.6

Arguments

name

stringThe name of the control.

selected

stringThe value of the selected option.

attribs

stringAttributes for the control.

config

array<string|int, mixed>An array of options for the control [id, published, checkacl, clientid].

Response

string

menuItems

Returns an array of menu items grouped by menu.

menuItems(mixed||string|int config = []) : mixed||string|int
static
since

1.6

Arguments

config

array<string|int, mixed>An array of configuration options [published, checkacl, clientid].

Response

array<string|int, mixed>

menus

Get a list of the available menus.

menus( clientId) : mixed||string|int
static
since

1.6

Arguments

clientId

intThe client id

Response

array<string|int, mixed>

ordering

Build the select list for Menu Ordering

ordering( &row,  id) : 
static
since

1.5

Arguments

row

objectThe row object

id

intThe 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

intId of the menu item

indent

stringThe indentation string

list

array<string|int, mixed>The list to process

children

array<string|int, mixed>The children of the current item

maxlevel

intThe maximum number of levels in the tree

level

intThe starting level

type

intSet the type of spacer to use. Use 1 for |_ or 0 for -

Response

array<string|int, mixed>

Properties

menus

Cached array of the menus.

static
since

1.6

Type(s)

array<string|int, mixed>

items

Cached array of the menus items.

static
since

1.6

Type(s)

array<string|int, mixed>