PHP Class Frontend\Core\Engine\Block\Extra

Inheritance: extends Frontend\Core\Engine\Base\Object
Afficher le fichier Open project: forkcms/forkcms

Protected Properties

Свойство Type Description
$overwrite boolean Should the template overwrite the current one
$templatePath string The path for the template

Méthodes publiques

Méthode Description
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module, string $action, mixed $data = null )
execute ( ) Execute the action We will build the class name, require the class and call the execute method.
getAction ( ) : string Get the current action 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
getContent ( ) : string Get the block content
getData ( ) : mixed Get the data
getModule ( ) : string Get the current module 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
getOverwrite ( ) : boolean Get overwrite mode
getTemplate ( ) : array Get the assigned template.
getTemplatePath ( ) : string Get path for the template
getVariables ( ) : array Get the assigned variables for this block.
loadConfig ( ) Load the config file for the requested block.

Private Methods

Méthode Description
setAction ( string $action = null ) Set the action
setData ( mixed $data ) Set the data
setModule ( string $module ) Set the module
setOverwrite ( boolean $overwrite ) Set overwrite mode
setTemplatePath ( string $path ) Set the path for the template

Method Details

__construct() public méthode

public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel, string $module, string $action, mixed $data = null )
$kernel Symfony\Component\HttpKernel\KernelInterface
$module string The module to load.
$action string The action to load.
$data mixed The data that was passed from the database.

execute() public méthode

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

getAction() public méthode

Get the current action 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

getContent() public méthode

Get the block content
public getContent ( ) : string
Résultat string

getData() public méthode

Get the data
public getData ( ) : mixed
Résultat mixed

getModule() public méthode

Get the current module 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

getOverwrite() public méthode

Get overwrite mode
public getOverwrite ( ) : boolean
Résultat boolean

getTemplate() public méthode

Get the assigned template.
public getTemplate ( ) : array
Résultat array

getTemplatePath() public méthode

Get path for the template
public getTemplatePath ( ) : string
Résultat string

getVariables() public méthode

Get the assigned variables for this block.
public getVariables ( ) : array
Résultat array

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

Property Details

$overwrite protected_oe property

Should the template overwrite the current one
protected bool $overwrite
Résultat boolean

$templatePath protected_oe property

The path for the template
protected string $templatePath
Résultat string