PHP Class Backend\Core\Engine\Cronjob

Inheritance: extends Backend\Core\Engine\Base\Object, implements ApplicationInterface
Datei anzeigen Open project: forkcms/forkcms

Public Methods

Method Description
display ( ) : Response
getLanguage ( ) : string Get language
initialize ( ) This method exists because the service container needs to be set before the page's functionality gets loaded.
loadConfig ( ) Load the config file for the requested module.
setAction ( string $action, string $module = null ) Set the action
setLanguage ( string $value ) Set language
setModule ( string $module ) Set the module

Protected Methods

Method Description
execute ( ) Execute the action We will build the classname, require the class and call the execute method.

Method Details

display() public method

public display ( ) : Response
return Symfony\Component\HttpFoundation\Response

execute() protected method

Execute the action We will build the classname, require the class and call the execute method.
protected execute ( )

getLanguage() public method

Get language
public getLanguage ( ) : string
return string

initialize() public method

This method exists because the service container needs to be set before the page's functionality gets loaded.
public initialize ( )

loadConfig() public method

In the config file we have to find disabled actions, the constructor will read the folder and set possible actions Other configurations will be stored in it also.
public loadConfig ( )

setAction() public method

We can't rely on the parent setModule function, because a cronjob requires no login
public setAction ( string $action, string $module = null )
$action string The action to load.
$module string The module to load.

setLanguage() public method

Set language
public setLanguage ( string $value )
$value string The language to load.

setModule() public method

We can't rely on the parent setModule function, because a cronjob requires no login
public setModule ( string $module )
$module string The module to load.