◆ __construct()
__construct |
( |
|
$options = array() | ) |
|
◆ getDefault()
getDefault |
( |
|
$language = '*' | ) |
|
Get menu item by id
- Paramètres
-
string | $language | The language code. |
- Renvoie
- MenuItem|null The item object or null when not found for given language
- Depuis
- 1.6
Références $items, et $language.
◆ getItems()
getItems |
( |
|
$attributes, |
|
|
|
$values, |
|
|
|
$firstonly = false |
|
) |
| |
Gets menu items by attribute
- Paramètres
-
string | $attributes | The field name |
string | $values | The value of the field |
boolean | $firstonly | If true, only returns the first item found |
- Renvoie
- MenuItem|MenuItem[] An array of menu item objects or a single object if the $firstonly parameter is true
- Depuis
- 1.6
Références $attributes, $key, elseif, Factory\getLanguage(), Multilanguage\isEnabled(), et null.
◆ $app
◆ $db
◆ $language
La documentation de cette classe a été générée à partir du fichier suivant :