Returns a JMenu object
static
JMenu
getInstance
(
string $client, [
array $options =
array()])
-
string
$client: The name of the client
-
array
$options: An associative array of options
Class constructor
JMenu
__construct
([array $options = array()])
-
array
$options: An array of configuration options.
Method to check JMenu object authorization against an access control object and optionally an access extension object
boolean
authorise
(integer $id)
Get menu item by id.
object The
getActive
()
Get the default item by language code.
object The
getDefault
([string $language = '*'])
-
string
$language: The language code, default value of * means all.
Redefined in descendants as:
Get menu item by id
mixed
getItem
(integer $id)
Gets menu items by attribute
array
getItems
(mixed $attributes, mixed $values, [boolean $firstonly = false])
-
mixed
$attributes: The field name(s).
-
mixed
$values: The value(s) of the field. If an array, need to match field names each attribute may have multiple values to lookup for.
-
boolean
$firstonly: If true, only returns the first item found
Redefined in descendants as:
Getter for the menu array
array
getMenu
()
Gets the parameter object for a certain menu item
Loads the menu items
array
load
()
Redefined in descendants as:
Set the default item by id
mixed
setActive
(integer $id)
Set the default item by id and language code.
boolean
setDefault
(integer $id, [string $language = ''])
-
integer
$id: The menu item id.
-
string
$language: The language cod (since 1.6).