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
Afficher le fichier Open project: forkcms/forkcms Class Usage Examples

Protected Properties

Свойство Type Description
$config Frontend\Core\Engine\Base\Config The config file

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
setAction ( string $action ) Set the action
setModule ( string $module ) Set the module

Method Details

__construct() public méthode

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 méthode

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

getAction() public méthode

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
Résultat string

getModule() public méthode

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
Résultat string

loadConfig() public méthode

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 méthode

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

setModule() protected méthode

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
Résultat Frontend\Core\Engine\Base\Config