프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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. |
메소드 | 설명 | |
---|---|---|
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 ( ) |
메소드 | 설명 | |
---|---|---|
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 getAssignedVariables ( ) : array | ||
리턴 | array |
public setAddSlashes ( boolean $enabled = true ) | ||
$enabled | boolean | Enable addslashes. |