Property | Type | Description | |
---|---|---|---|
$_activeMenu | Current active menu | ||
$_defaults | array | _defaults | |
$_items | array | _items |
Method | 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 |
Method | 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 | |
return | void |
public static activeMenu ( $menu = null ) |
public static getDefaults ( ) : array | ||
return | array |