Documentation

IViewController

Interface IViewController

This interface defines the basic contract for classes that handle view controller functionality. Classes implementing this interface should provide methods for getting the ID, title, required access permission, and for rendering the page as HTML.

Table of Contents

Methods

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.

Methods

accessPermission()

Returns the required access permission for the view controller or null if there is no restriction.

public accessPermission() : string|null
Return values
string|null

hasAccess()

Returns whether the User has Access to the Page (checks the AccessPermission)

public hasAccess(User $u) : bool
Parameters
$u : User

User to checkup

Return values
bool

id()

Returns the ID of the view controller.

public id() : string|null
Return values
string|null

render()

Renders the page as HTML to display it.

public render() : string|null
Return values
string|null

title()

Returns the page title of the view controller.

public title() : string|null
Return values
string|null

        
On this page

Search results