Builder
in package
implements
ContainerAwareInterface
uses
ContainerAwareTrait
Class Builder
Table of Contents
Interfaces
- ContainerAwareInterface
Constants
- SOURCE = ['menzzo', 'meublePromo']
Properties
- $requestStack : mixed
- $dashMenus : array<string|int, mixed>
- $routeNames : array<string|int, mixed>
- $saleShowMenus : array<string|int, mixed>
- $user : mixed
Methods
- getLastSegmentFromUrl() : mixed
- hasAccess() : bool|void
- Checking if user has access to specific route
- hasAccessToSaleShow() : bool
- Checking if user has access to sale
- mainMenu() : ItemInterface
- setRequestStack() : mixed
- checkMenuPermission() : mixed
- Check permission
- getDashboardMenu() : void
- Show dashboard Menu
- getSaleShowMenus() : array<string|int, mixed>
- Get sale show menus filtered by sale show attribute
Constants
SOURCE
public
mixed
SOURCE
= ['menzzo', 'meublePromo']
Properties
$requestStack
protected
mixed
$requestStack
Tags
$dashMenus
private
array<string|int, mixed>
$dashMenus
= []
$routeNames
private
array<string|int, mixed>
$routeNames
= []
$saleShowMenus
private
array<string|int, mixed>
$saleShowMenus
= []
$user
private
mixed
$user
Tags
Methods
getLastSegmentFromUrl()
public
getLastSegmentFromUrl() : mixed
hasAccess()
Checking if user has access to specific route
public
hasAccess(mixed $factory, mixed $name[, string $returnType = 'header' ]) : bool|void
Parameters
- $factory : mixed
- $name : mixed
- $returnType : string = 'header'
Return values
bool|voidhasAccessToSaleShow()
Checking if user has access to sale
public
hasAccessToSaleShow(mixed $factory, Sale $sale) : bool
Parameters
- $factory : mixed
- $sale : Sale
Tags
Return values
boolmainMenu()
public
mainMenu(FactoryInterface $factory, array<string|int, mixed> $options) : ItemInterface
Parameters
- $factory : FactoryInterface
- $options : array<string|int, mixed>
Return values
ItemInterfacesetRequestStack()
public
setRequestStack(mixed $request) : mixed
Parameters
- $request : mixed
checkMenuPermission()
Check permission
private
checkMenuPermission(mixed $menu) : mixed
Parameters
- $menu : mixed
getDashboardMenu()
Show dashboard Menu
private
getDashboardMenu(mixed $menu) : void
Parameters
- $menu : mixed
getSaleShowMenus()
Get sale show menus filtered by sale show attribute
private
getSaleShowMenus(mixed $menu) : array<string|int, mixed>
Parameters
- $menu : mixed