Overview

Namespaces

  • Menu
    • Items
      • Contents
    • Traits

Classes

  • Menu
  • MenuHandler
  • MenuServiceProvider
  • Overview
  • Namespace
  • Class

Class MenuHandler

Handles various instances of ItemList at once

Namespace: Menu
Located at Menu/MenuHandler.php
Methods summary
public
# __construct( array $menuObjects = array() )

Set the menuobjects on which this menu should act

Set the menuobjects on which this menu should act

Parameters

$menuObjects
The menuobjects
public
# setMenuObjects( $menuObjects )
public
# getMenuObjects( )
public
# addMenuObject( $menuObject )
public
# map( $callback )
public
# breadcrumbs( $choosePath = null )
protected
# getHandlerFromResults( $menuHandlers )
protected
# getMatchFromResults( $results )
protected
# getCombinedResults( $results )
protected
# getCombindedResultsByKey( $results )
protected
# getImplodedResults( $results )
protected
# getMenuObjectsFromHandlers( $menuHandlers )
public Menu\MenuHandler
# __call( string $method, array $parameters = array() )

Magic method that will pass the incoming calls to all of the ItemLists this handler acts on

Magic method that will pass the incoming calls to all of the ItemLists this handler acts on

Parameters

$method
$parameters

Returns

Menu\MenuHandler
public string
# __toString( )

Render the MenuHandler

Render the MenuHandler

Returns

string
Properties summary
protected array $menuObjects

The ItemList or Item instances this handler acts on

The ItemList or Item instances this handler acts on

# array()
public static array $override
# array( 'add', 'set', 'wrap' )
public static array $responses
# array( 'getHandlerFromResults' => array( 'getAllItems', 'getItemsAtDepth', 'getItemsAtDepthRange', 'getItemsByContentType', 'getAllItemLists', 'getSubmenu', 'getItemListsAtDepth', 'getItemListsAtDepthRange', 'onItem', 'getContent', 'stop', 'filter' ), 'getMatchFromResults' => array( 'findItemListByName', 'findActiveItem', 'findByName', 'findItemByUrl', 'find' ), 'getCombinedResults' => array( 'lists' ), 'getCombindedResultsByKey' => array( 'getItemsWithDepth', 'getItemListsWithDepth' ), 'getImplodedResults' => array( 'render' ) )
API documentation generated by ApiGen