AbstractMenu
class AbstractMenu
Menu class
Methods
__construct(
array $options = array())
Class constructor
static
AbstractMenu
getInstance(
string $client,
array $options = array())
Returns a Menu object
boolean
setDefault(
integer $id,
string $language = '*')
Set the default item by id and language code.
MenuItem|null
getDefault(
string $language = '*')
Get the default item by language code.
getItems(
mixed $attributes,
mixed $values,
boolean $firstonly = false)
Gets menu items by attribute
Registry
getParams(
integer $id)
Gets the parameter object for a certain menu item
boolean
authorise(
integer $id)
Method to check Menu object authorization against an access control object and optionally an access extension object
array
load()
Loads the menu items
Details
boolean
setDefault(
integer $id,
string $language = '*')
Set the default item by id and language code.
MenuItem|MenuItem[]
getItems(
mixed $attributes,
mixed $values,
boolean $firstonly = false)
Gets menu items by attribute