Property | Type | Description | |
---|---|---|---|
$addSlashes | boolean | Should we add slashes to each value? | |
$debugMode | boolean | Debug mode. | |
$forkSettings | |||
$forms | array | List of form objects. | |
$language | string | Language. | |
$variables | array | List of assigned variables. |
Method | Description | |
---|---|---|
addForm ( SpoonForm $form ) | Adds a form to the template. | |
assign ( string | array $key, mixed $values = null ) | Spoon assign method. | |
assignArray ( array $variables, $index = null ) | Assign an entire array with keys & values. | |
assignGlobal ( string $key, mixed $value ) | ||
cache ( ) | ||
compile ( ) | ||
display ( ) | ||
getAssignedVariables ( ) : array | Retrieves the already assigned variables. | |
isCached ( ) | ||
setAddSlashes ( boolean $enabled = true ) | Should we execute addSlashed on the locale? | |
setForceCompile ( ) | ||
setPlugin ( ) |
Method | Description | |
---|---|---|
startGlobals ( Twig_Environment &$twig ) |
public addForm ( SpoonForm $form ) | ||
$form | SpoonForm | The form-instance to add. |
public assignArray ( array $variables, $index = null ) | ||
$variables | array | This array with keys and values will be used to search and replace in the template file. |
public assignGlobal ( string $key, mixed $value ) | ||
$key | string | |
$value | mixed |
public getAssignedVariables ( ) : array | ||
return | array |
public setAddSlashes ( boolean $enabled = true ) | ||
$enabled | boolean | Enable addslashes. |
protected startGlobals ( Twig_Environment &$twig ) | ||
$twig | Twig_Environment |
protected bool $addSlashes | ||
return | boolean |
protected ModulesSettings,Common $forkSettings | ||
return |
protected array $variables | ||
return | array |