MenusRepository
class MenusRepository
Class MenusRepository retrieves things related to DvsMenu and DvsMenuItems database table
Methods
__construct(DvsMenu $Menu, DvsMenuItem $MenuItem, LanguageDetector $LanguageDetector, UserHelper $UserHelper, Framework $Framework)
No description
Collection
menus()
Returns a Collection of DvsMenus
DvsMenu
findById($id)
Finds DvsMenu by an integer id
array
findMenuByName(string $name)
Find menu using name value
mixed
buildMenu($name, int $depth = 2, null $page = null)
Build a menu from it's name
array
getChildrenMenuItems($name)
Get the children menu items of a menu name
array
getSiblingMenuItems($name)
Get menu siblings
array
menuStructure(DvsMenu|DvsMenuItem $menu, boolean $isRootMenu = true)
A simple way to view the menu structure not in use by anything right now but here for troubleshooting menus if we need to
Details
at line 44
__construct(DvsMenu $Menu, DvsMenuItem $MenuItem, LanguageDetector $LanguageDetector, UserHelper $UserHelper, Framework $Framework)
at line 59
Collection
menus()
Returns a Collection of DvsMenus
at line 71
DvsMenu
findById($id)
Finds DvsMenu by an integer id
at line 89
array
findMenuByName(string $name)
Find menu using name value
at line 109
mixed
buildMenu($name, int $depth = 2, null $page = null)
Build a menu from it's name
at line 121
array
getChildrenMenuItems($name)
Get the children menu items of a menu name
at line 133
array
getSiblingMenuItems($name)
Get menu siblings
at line 217
array
menuStructure(DvsMenu|DvsMenuItem $menu, boolean $isRootMenu = true)
A simple way to view the menu structure not in use by anything right now but here for troubleshooting menus if we need to