FrontendController
extends Controller
in package
Class FrontendController
This is the frontend controller for the frontend editing. This adds the necessary javascripts and toolbars
Tags
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
$cx
Main class instance
protected
Cx
$cx
= null
$systemComponentController
SystemComponentController for this Component
private
SystemComponentController
$systemComponentController
= null
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
__construct()
Creates new controller
public
__construct(SystemComponentController $systemComponentController, Cx $cx) : mixed
Parameters
- $systemComponentController : SystemComponentController
-
Main controller for this system component
- $cx : Cx
-
Main class instance
getSystemComponentController()
Returns the main controller
public
getSystemComponentController() : SystemComponentController
Return values
SystemComponentController —Main controller for this system component
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
prepareTemplate()
Adds the toolbar to the current html structure (after the starting body tag)
private
prepareTemplate(ComponentController $componentController) : mixed
Parameters
- $componentController : ComponentController