PHP Класс Frontend\Core\Engine\AjaxAction

Автор: Tijs Verkoyen ([email protected])
Автор: Davy Hellemans ([email protected])
Автор: Dieter Vanden Eynde ([email protected])
Наследование: extends Frontend\Core\Engine\Base\AjaxAction
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$config Frontend\Core\Engine\Base\Config The config file

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

Метод Описание
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $action, string $module )
execute ( ) Execute the action.
getAction ( ) : string Get the current action.
getModule ( ) : string Get the current module.
loadConfig ( ) Load the config file for the requested module.

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

Метод Описание
setAction ( string $action ) Set the action
setModule ( string $module ) Set the module

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

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

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $action, string $module )
$kernel Symfony\Component\HttpKernel\KernelInterface
$action string The action that should be executed.
$module string The module that wherein the action is available.

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

We will build the class name, require the class and call the execute method
public execute ( )

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

REMARK: You should not use this method from your code, but it has to be public so we can access it later on in the core-code.
public getAction ( ) : string
Результат string

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

REMARK: You should not use this method from your code, but it has to be public so we can access it later on in the core-code.
public getModule ( ) : string
Результат string

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

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

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

Set the action
protected setAction ( string $action )
$action string The action that should be executed.

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

Set the module
protected setModule ( string $module )
$module string The module wherein the action is available.

Описание свойств

$config защищенное свойство

The config file
protected Config,Frontend\Core\Engine\Base $config
Результат Frontend\Core\Engine\Base\Config