Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
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 | |
Результат | static |
public addProperty ( $name, $value ) : void | ||
Результат | void |
public closeMacro ( $name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL ) : |
||
Результат |
public expandMacro ( $name, $args, $modifiers = NULL, $nPrefix = NULL ) : |
||
Результат |
public getMacroNode ( ) : |
||
Результат |
public getProperties ( ) : array | ||
Результат | array |
public openMacro ( $name, $args = NULL, $modifiers = NULL, $isRightmost = FALSE, $nPrefix = NULL ) : |
||
Результат |
public writeAttrsMacro ( $html ) : void | ||
Результат | void |