SiteMenu
class SiteMenu extends AbstractMenu
Menu class
Methods
__construct(
array $options = array())
Class constructor
static
AbstractMenu
getInstance(
string $client,
array $options = array())
Returns a Menu object
from AbstractMenu
boolean
setDefault(
integer $id,
string $language = '*')
Set the default item by id and language code.
from AbstractMenu
MenuItem|null
getDefault(
string $language = '*')
Get menu item by id
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
from AbstractMenu
boolean
authorise(
integer $id)
Method to check Menu object authorization against an access control object and optionally an access extension object
from AbstractMenu
array
load()
Loads the entire menu table into memory.
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