Méthode | Description | |
---|---|---|
addMacro ( $name, latte\IMacro $macro, $flags = NULL ) : static | Adds new macro with IMacro flags. | |
addMethod ( $name, $body, $arguments = '' ) : void | Adds custom method to template. | |
addProperty ( $name, $value ) : void | Adds custom property to template. | |
closeMacro ( $name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL ) : |
Generates code for {/macro . | |
compile ( array $tokens, $className ) : string | Compiles tokens to PHP code. | |
expandMacro ( $name, $args, $modifiers = NULL, $nPrefix = NULL ) : |
Expands macro and returns node & code. | |
expandTokens ( $s ) | ||
getContentType ( ) | ||
getContext ( ) | ||
getLine ( ) : integer | Returns current line number. | |
getMacroNode ( ) : |
||
getMethods ( ) : array | Returns custom methods. | |
getProperties ( ) : array | Returns custom properites. | |
isInHead ( ) : boolean | ||
openMacro ( $name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL ) : |
Generates code for {macro . | |
setContentType ( $type ) : static | ||
setContext ( $context ) | ||
writeAttrsMacro ( $html ) : void |
Generates code for macro |
Méthode | Description | |
---|---|---|
escape ( $s ) | ||
printEndTag ( $node ) | ||
processComment ( latte\Token $token ) | ||
processHtmlAttributeBegin ( latte\Token $token ) | ||
processHtmlAttributeEnd ( latte\Token $token ) | ||
processHtmlTagBegin ( latte\Token $token ) | ||
processHtmlTagEnd ( latte\Token $token ) | ||
processMacroTag ( latte\Token $token ) | ||
processText ( latte\Token $token ) | ||
writeCode ( $code, $isReplaced, $isRightmost ) |
public addMacro ( $name, latte\IMacro $macro, $flags = NULL ) : static | ||
$macro | latte\IMacro | |
Résultat | static |
public addProperty ( $name, $value ) : void | ||
Résultat | void |
public closeMacro ( $name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL ) : |
||
Résultat |
public expandMacro ( $name, $args, $modifiers = NULL, $nPrefix = NULL ) : |
||
Résultat |
public getProperties ( ) : array | ||
Résultat | array |
public openMacro ( $name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL ) : |
||
Résultat |
public writeAttrsMacro ( $html ) : void | ||
Résultat | void |