Property | Type | Description | |
---|---|---|---|
$URL | A reference to the URL-instance | ||
$tpl | A reference to the current template |
Property | Type | Description | |
---|---|---|---|
$header | The header object | ||
$parameters | array | The parameters (urldecoded) |
Method | Description | |
---|---|---|
__construct ( Symfony\Component\HttpKernel\KernelInterface $kernel ) | The constructor will set some properties. It populates the parameter array with urldecoded values for easy-use. | |
checkToken ( ) | Check if the token is ok | |
createForm ( string | Symfony\Component\Form\FormTypeInterface $type, mixed $data = null, array $options = [] ) : |
Creates and returns a Form instance from the type of the form. | |
display ( string $template = null ) | Display, this wil output the template to the browser If no template is specified we build the path form the current module and action | |
execute ( ) | Execute the action | |
getParameter ( string $key, string $type = 'string', mixed $defaultValue = null ) : mixed | Get a parameter for a given key The function will return null if the key is not available By default we will cast the return value into a string, if you want something else specify it by passing the wanted type. |
Method | Description | |
---|---|---|
getBackendModulePath ( ) : string | ||
parse ( ) | Parse to template |
public __construct ( Symfony\Component\HttpKernel\KernelInterface $kernel ) | ||
$kernel | Symfony\Component\HttpKernel\KernelInterface |
public createForm ( string | Symfony\Component\Form\FormTypeInterface $type, mixed $data = null, array $options = [] ) : |
||
$type | string | Symfony\Component\Form\FormTypeInterface | The built type of the form |
$data | mixed | The initial data for the form |
$options | array | Options for the form |
return |
public getParameter ( string $key, string $type = 'string', mixed $defaultValue = null ) : mixed | ||
$key | string | The name of the parameter. |
$type | string | The return-type, possible values are: bool, boolean, int, integer, float, double, string, array. |
$defaultValue | mixed | The value that should be returned if the key is not available. |
return | mixed |
public Url,Backend\Core\Engine $URL | ||
return |
protected Header,Backend\Core\Engine $header | ||
return |
protected array $parameters | ||
return | array |