메소드 |
설명 |
|
checkMenuItemPermission ( $permission ) : boolean |
Tells us whether or not the menu item is supposed
to be shown to this user |
|
childrenLoaded ( MenuItem $item ) : boolean |
checks if the children relation has been lazy loaded
the goal is to respect the 'depth' value requested
when the menu was built |
|
getAllowedMenuItems ( DvsMenuItem $menuItem ) : DvsMenuItem | false |
This will let us know if the menu item is allowed and
it also traverses all it's children (and future generations)
filtering out menu items that are not allowed |
|
getAllowedMenuItemsFromMenu ( DvsMenu $menu ) : Collection |
This gets us all the allowed menu items from a
particular menu. |
|
getLazyLoadByDepth ( $startingRelation, $depth ) : string |
generates the lazy load string based off the requested depth |
|
getTranslation ( $menu ) : mixed |
Translate the menu if needed |
|
locateCurrentMenuItem ( $pageId, $menuItems ) : boolean |
recursively traverses the menu items and their children
finds the item that matches the current page, marks it as an 'activeItem'
and marks it's parents as 'activeAncestor' |
|
traverseMenu ( $menu, $depth, $page ) : mixed |
Traverses the menu recursively finding sub menus |
|