Свойство | Type | Description | |
---|---|---|---|
$code | |||
$cursor | |||
$end | |||
$env | |||
$filename | |||
$lineno | |||
$operatorRegex | |||
$options | |||
$position | |||
$pushedBack |
Méthode | Description | |
---|---|---|
__construct ( Twig_Environment $env = null, array $options = [] ) | ||
setEnvironment ( Twig_Environment $env ) | ||
sortByLength ( $a, $b ) | ||
tokenize ( string $code, string $filename = 'n/a' ) : Twig_TokenStream | Tokenizes a source code. |
Méthode | Description | |
---|---|---|
getOperatorRegex ( ) | ||
lexBlock ( ) | ||
lexData ( ) | ||
lexExpression ( ) | ||
lexVar ( ) | ||
moveCursor ( $text ) | ||
moveLineNo ( $text ) | ||
nextToken ( ) | Parses the next token and returns it. |
public __construct ( Twig_Environment $env = null, array $options = [] ) | ||
$env | Twig_Environment | |
$options | array |
public setEnvironment ( Twig_Environment $env ) | ||
$env | Twig_Environment |