PHP Class Frontend\Core\Engine\AjaxAction

Author: Tijs Verkoyen ([email protected])
Author: Davy Hellemans ([email protected])
Author: Dieter Vanden Eynde ([email protected])
Inheritance: extends Frontend\Core\Engine\Base\AjaxAction
Datei anzeigen Open project: forkcms/forkcms Class Usage Examples

Protected Properties

Property Type Description
$config Frontend\Core\Engine\Base\Config The config file

Public Methods

Method Description
__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.

Protected Methods

Method Description
setAction ( string $action ) Set the action
setModule ( string $module ) Set the module

Method Details

__construct() public method

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() public method

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

getAction() public method

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
return string

getModule() public method

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
return string

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 also be stored in it.
public loadConfig ( )

setAction() protected method

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

setModule() protected method

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

Property Details

$config protected_oe property

The config file
protected Config,Frontend\Core\Engine\Base $config
return Frontend\Core\Engine\Base\Config