PHP Class Frontend\Core\Engine\Base\Config

The module-specific config-files can extend the functionality from this class.
Inheritance: extends KernelLoader
Show file Open project: forkcms/forkcms Class Usage Examples

Protected Properties

Property Type Description
$defaultAction string The default action
$disabledAJAXActions array The disabled AJAX-actions
$disabledActions array The disabled actions
$module string The current loaded module
$possibleAJAXActions array All the possible AJAX actions
$possibleActions array All the possible actions

Public Methods

Method Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module )
getDefaultAction ( ) : string Get the default action
getModule ( ) : string Get the current loaded module
getPossibleAJAXActions ( ) : array Get the possible AJAX actions
getPossibleActions ( ) : array Get the possible actions

Protected Methods

Method Description
setPossibleActions ( ) Set the possible actions, based on files in folder.

Method Details

__construct() public method

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module )
$kernel Symfony\Component\HttpKernel\KernelInterface
$module string The module wherefore this is the configuration-file.

getDefaultAction() public method

Get the default action
public getDefaultAction ( ) : string
return string

getModule() public method

Get the current loaded module
public getModule ( ) : string
return string

getPossibleAJAXActions() public method

Get the possible AJAX actions
public getPossibleAJAXActions ( ) : array
return array

getPossibleActions() public method

Get the possible actions
public getPossibleActions ( ) : array
return array

setPossibleActions() protected method

You can disable action in the config file. (Populate $disabledActions)
protected setPossibleActions ( )

Property Details

$defaultAction protected property

The default action
protected string $defaultAction
return string

$disabledAJAXActions protected property

The disabled AJAX-actions
protected array $disabledAJAXActions
return array

$disabledActions protected property

The disabled actions
protected array $disabledActions
return array

$module protected property

The current loaded module
protected string $module
return string

$possibleAJAXActions protected property

All the possible AJAX actions
protected array $possibleAJAXActions
return array

$possibleActions protected property

All the possible actions
protected array $possibleActions
return array