ErrorViewController
in package
implements
IViewController
Table of Contents
Interfaces
- IViewController
- Interface IViewController
Properties
- $errorCode : mixed
Methods
- __construct() : mixed
- accessPermission() : string|null
- Returns the required access permission for the view controller or null if there is no restriction.
- hasAccess() : bool
- Returns whether the User has Access to the Page (checks the AccessPermission)
- id() : string|null
- Returns the ID of the view controller.
- render() : string|null
- Renders the page as HTML to display it.
- title() : string|null
- Returns the page title of the view controller.
Properties
$errorCode
private
mixed
$errorCode
Methods
__construct()
public
__construct(mixed $errorCode) : mixed
Parameters
- $errorCode : mixed
accessPermission()
Returns the required access permission for the view controller or null if there is no restriction.
public
accessPermission() : string|null
Return values
string|nullhasAccess()
Returns whether the User has Access to the Page (checks the AccessPermission)
public
hasAccess(User|null $u) : bool
Parameters
- $u : User|null
-
User to checkup
Return values
boolid()
Returns the ID of the view controller.
public
id() : string|null
Return values
string|nullrender()
Renders the page as HTML to display it.
public
render() : string|null
Return values
string|nulltitle()
Returns the page title of the view controller.
public
title() : string|null