Backend controller to create a default backend view.

Create a subclass of this in order to create a normal backend view

copyright Comvation AG
author Michael Ritter
package contrexx
subpackage core_core
version 3.1.0

 Methods

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

__call(string $methodName, array $arguments) : mixed
Inherited
inherited_from \Cx\Core\Core\Model\Entity\Controller::__call()

Parameters

$methodName

string

Name of method to call

$arguments

array

List of arguments for the method to call

Returns

mixedReturn value of the method to call

Creates new controller

__construct(\Cx\Core\Core\Model\Entity\SystemComponentController $systemComponentController, \Cx\Core\Core\Controller\Cx $cx) 
Inherited
inherited_from \Cx\Core\Core\Model\Entity\Controller::__construct()

Parameters

$systemComponentController

\Cx\Core\Core\Model\Entity\SystemComponentController

Main controller for this system component

$cx

\Cx\Core\Core\Controller\Cx

Main class instance

Returns a list of available commands (?act=XY)

getCommands() : array

Returns

arrayList of acts

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

getPage(\Cx\Core\ContentManager\Model\Entity\Page $page) 

This loads a template named after current $act and calls parsePage($actTemplate)

todo $this->cx->getTemplate()->setVariable() should not be called here but in Cx class
global array $_ARRAYLANG Language data

Parameters

Returns the main controller

getSystemComponentController() : \Cx\Core\Core\Model\Entity\SystemComponentController
Inherited
inherited_from \Cx\Core\Core\Model\Entity\Controller::getSystemComponentController()

Returns

\Cx\Core\Core\Model\Entity\SystemComponentControllerMain controller for this system component

Use this to parse your backend page

parsePage(\Cx\Core\Html\Sigma $template, array $cmd) 

You will get the template located in /View/Template/{CMD}.html You can access Cx class using $this->cx To show messages, use \Message class

Parameters

$template

\Cx\Core\Html\Sigma

Template for current CMD

$cmd

array

CMD separated by slashes

 Properties

 

$cx : \Cx\Core\Core\Controller\Cx
Inherited
inherited_from \Cx\Core\Core\Model\Entity\Controller::$$cx
 

$systemComponentController : \Cx\Core\Core\Model\Entity\SystemComponentController
Inherited
inherited_from \Cx\Core\Core\Model\Entity\Controller::$$systemComponentController
© Copyright 2014 by Comvation AG
Generated on 2014-07-11T08:39:19+02:00.