ViewControllerMenuItem
extends MenuItem
in package
Table of Contents
Properties
- $icon : string|null
- Icon of the MenuItem or null
- $id : string
- ID of the MenuItem, used to find identify it
- $permissionRequired : string|null
- Permission Required
- $smPaginationTarget : mixed
- Smart Pagination target (only pages content html not complete page)
- $subItems : array<string|int, mixed>|null
- Subitems of it
- $target : string|null
- Target (href) of the Item
- $text : string|null
- Text of the MenuItem
- $viewController : IViewController
- ViewController of the MenuItem
Methods
- __construct() : mixed
- hasAccess() : bool
- Checks if the User has Access to the Menu Item
Properties
$icon
Icon of the MenuItem or null
public
string|null
$icon
$id
ID of the MenuItem, used to find identify it
public
string
$id
$permissionRequired
Permission Required
public
string|null
$permissionRequired
$smPaginationTarget
Smart Pagination target (only pages content html not complete page)
public
mixed
$smPaginationTarget
$subItems
Subitems of it
public
array<string|int, mixed>|null
$subItems
$target
Target (href) of the Item
public
string|null
$target
$text
Text of the MenuItem
public
string|null
$text
$viewController
ViewController of the MenuItem
public
IViewController
$viewController
Methods
__construct()
public
__construct(mixed $id, mixed $icon, IViewController $viewController, mixed $text[, mixed $subItems = null ]) : mixed
Parameters
- $id : mixed
- $icon : mixed
- $viewController : IViewController
- $text : mixed
- $subItems : mixed = null
hasAccess()
Checks if the User has Access to the Menu Item
public
hasAccess(User $u) : bool
Parameters
- $u : User
-
User to check