Documentation

FrontendController extends Controller

Class FrontendController

This is the frontend controller for the frontend editing. This adds the necessary javascripts and toolbars

Tags
copyright

CLOUDREXX CMS - Cloudrexx AG Thun

author

Ueli Kramer ueli.kramer@comvation.com

subpackage

coremodule_frontendediting

version
1.0.0

Table of Contents

Properties

$cx  : Cx
Main class instance
$systemComponentController  : SystemComponentController
SystemComponentController for this Component

Methods

__call()  : mixed
Route methods like getName(), getType(), getDirectory(), etc.
__construct()  : mixed
Creates new controller
getSystemComponentController()  : SystemComponentController
Returns the main controller
initFrontendEditing()  : mixed
Init the frontend editing.
getCustomContentTemplates()  : array<string|int, mixed>
Get all custom content templates by template id
getDefaultTemplate()  : mixed
Get the default template for the current frontend language
getSkinOptions()  : string
Returns the html code for the select element for the skin option
getThemes()  : array<string|int, mixed>
Returns all themes which are defined in the backend
prepareTemplate()  : mixed
Adds the toolbar to the current html structure (after the starting body tag)

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

Return values
mixed

Return value of the method to call

initFrontendEditing()

Init the frontend editing.

public initFrontendEditing(ComponentController $componentController) : mixed

Register the javascripts and css files Adds the used language variables to cloudrexx-js variables, so the toolbar has access to these variables

Parameters
$componentController : ComponentController

getCustomContentTemplates()

Get all custom content templates by template id

private getCustomContentTemplates() : array<string|int, mixed>
Return values
array<string|int, mixed>

all custom content files

getDefaultTemplate()

Get the default template for the current frontend language

private getDefaultTemplate() : mixed
Return values
mixed

default theme id

getSkinOptions()

Returns the html code for the select element for the skin option

private getSkinOptions() : string
Return values
string

html for select element

getThemes()

Returns all themes which are defined in the backend

private getThemes() : array<string|int, mixed>
Return values
array<string|int, mixed>

all available themes


        
On this page

Search results