Method | 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 |
Method | 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 | |
return | static |
public addProperty ( $name, $value ) : void | ||
return | void |
public closeMacro ( $name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL ) : |
||
return |
public expandMacro ( $name, $args, $modifiers = NULL, $nPrefix = NULL ) : |
||
return |
public getProperties ( ) : array | ||
return | array |
public openMacro ( $name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL ) : |
||
return |
public writeAttrsMacro ( $html ) : void | ||
return | void |