Methods summary
public static
Menu\MenuHandler
|
#
handler( string|array $names = '', array $attributes = array(), string $element = 'ul' )
Get a MenuHandler.
This method will retrieve ItemLists by name,
If an ItemList doesn't already exist, it will
be registered and added to the handler.
$handler = Menu::handler();
$handler = Menu::handler('backend');
$handler = Menu::handler(array('admin', 'sales'));
Parameters
- $names
- The name this handler should respond to
- $attributes
- Its attributes
- $element
- Its element
Returns
|
public static
Menu\MenuHandler
|
#
allHandlers( )
Get a MenuHandler for all registered ItemLists
Get a MenuHandler for all registered ItemLists
Returns
|
public static
|
#
reset( )
Erase all menus in memory
Erase all menus in memory
|
public static
Menu\Items\ItemList
|
#
items( string $name = null, array $attributes = array(), string $element = 'ul' )
Create a new ItemList
Parameters
- $name
- The name of the ItemList
- $attributes
- The HTML attributes for the list element
- $element
- The HTML element for the list (ul or dd)
Returns
|
public static
Menu\Items\ItemList
|
#
setItemList( string $name, Menu\Items\ItemList $itemList )
Store an ItemList in memory
Store an ItemList in memory
Parameters
- $name
- The handle to store it to
- $itemList
Returns
|
public static
Menu\Items\ItemList
|
#
getItemList( string $name = null )
Get an ItemList from the memory
Get an ItemList from the memory
Parameters
- $name
- The ItemList handle
Returns
|
public static
mixed
|
#
__callStatic( string $method, array $parameters = array() )
Magic Method for calling methods on the default handler.
Magic Method for calling methods on the default handler.
echo Menu::render();
Menu::add('home', 'Home');
Parameters
Returns
mixed
|
public static
Illuminate\Container\Container
|
#
getContainer( string $dependency = null )
Get the current dependencies
Get the current dependencies
Parameters
- $dependency
- A dependency to make on the fly
Returns
Illuminate\Container\Container
|
public static
|
#
setContainer( Illuminate\Container\Container $container )
Set the Container to use
Parameters
|
public static
mixed
|
#
getOption( string $option = null )
Get an option from the options array
Get an option from the options array
Parameters
Returns
mixed Its value
|
public static
|
#
setOption( key $option, mixed $value )
Set a global option
Parameters
- $option
- The option
- $value
- Its value
|