class MenuManager

Adds, extends and generates menus. Result of app('menu')

Properties

protected $_app
protected $_menus
protected $_extenders

Methods

__construct( $app)

No description

register($name, $menu)

Registers a new menu in the menu container.

extend($name, $extender)

Registers a menu class extender in the container.

mixed
getMenu($menu)

No description

get(string $menu_name)

Gets the specific menu out of the menu container, builds it and calls extenders on it.

Details

at line 29
__construct( $app)

Parameters

$app

at line 40
register($name, $menu)

Registers a new menu in the menu container.

Parameters

$name
$menu

at line 52
extend($name, $extender)

Registers a menu class extender in the container.

The class will be invoked when the original menu will be build.

Parameters

$name
$extender

at line 68
mixed getMenu($menu)

Parameters

$menu

Return Value

mixed

See also

MenuManager::get() Simple alias method

at line 81
RootMenuItem get(string $menu_name)

Gets the specific menu out of the menu container, builds it and calls extenders on it.

Parameters

string $menu_name

Return Value

RootMenuItem