PHP Класс Backend\Core\Engine\Cronjob

Наследование: extends Backend\Core\Engine\Base\Object, implements ApplicationInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
execute ( ) Execute the action We will build the classname, require the class and call the execute method.

Описание методов

display() публичный метод

public display ( ) : Response
Результат Symfony\Component\HttpFoundation\Response

execute() защищенный метод

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

getLanguage() публичный метод

Get language
public getLanguage ( ) : string
Результат string

initialize() публичный метод

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

loadConfig() публичный метод

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() публичный метод

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() публичный метод

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

setModule() публичный метод

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.