Documentation

SystemComponentFrontendController extends Controller
in package

AbstractYes

Frontend controller to easily create a frontent view

Tags
copyright

Cloudrexx AG

author

Michael Ritter michael.ritter@comvation.com

subpackage

core_core

version
3.1.0

Table of Contents

Properties

$cx  : Cx
Main class instance

Methods

__call()  : mixed
Route methods like getName(), getType(), getDirectory(), etc.
__construct()  : mixed
Creates new controller
getPage()  : mixed
This is called by the default ComponentController and does all the repeating work
getSystemComponentController()  : SystemComponentController
Returns the main controller
parsePage()  : mixed
Use this to parse your frontend page

Properties

Methods

__call()

Route methods like getName(), getType(), getDirectory(), etc.

public __call(string $methodName, array<string|int, mixed> $arguments) : mixed
Parameters
$methodName : string

Name of method to call

$arguments : array<string|int, mixed>

List of arguments for the method to call

Attributes
#[ReturnTypeWillChange]
Return values
mixed

Return value of the method to call

getPage()

This is called by the default ComponentController and does all the repeating work

public getPage(Page $page) : mixed

This creates a template of the page content and calls parsePage($template)

Parameters
$page : Page

Resolved page

parsePage()

Use this to parse your frontend page

public abstract parsePage(Sigma $template, mixed $cmd) : mixed

You will get a template based on the content of the resolved page You can access Cx class using $this->cx To show messages, use \Message class

Parameters
$template : Sigma

Template containing content of resolved page

$cmd : mixed

        
On this page

Search results