Свойство | Type | Description | |
---|---|---|---|
$_activeMenu | Current active menu | ||
$_defaults | array | _defaults | |
$_items | array | _items |
Méthode | Description | |
---|---|---|
activeMenu ( $menu = null ) | Getter/setter for activeMenu | |
add ( $menu, string $path, array $options = [] ) : void | Add a menu item | |
clear ( $menu = 'sidebar' ) : void | Clear all menus | |
getDefaults ( ) : array | Gets default settings for menu items | |
items ( $menu = 'sidebar', $items = null ) : array | Sets or returns menu data in array | |
menus ( ) | ||
remove ( string $path ) : void | Remove a menu item |
Méthode | Description | |
---|---|---|
_merge ( array $firstArray, array $secondArray ) : array | Merge $firstArray with $secondArray | |
_replace ( array &$target, string $path, array $options ) : void | Replace a menu element | |
_setupOptions ( array &$options ) : void | _setupOptions |
protected static _setupOptions ( array &$options ) : void | ||
$options | array | |
Résultat | void |
public static activeMenu ( $menu = null ) |
public static getDefaults ( ) : array | ||
Résultat | array |
protected static array $_defaults | ||
Résultat | array |