Свойство | Тип | Описание | |
---|---|---|---|
$manager | Phly\Mustache\Mustache | The Mustache manager | |
$nestingLevel | integer | Current nesting level in hierarchical templates | |
$patterns | array | Patterns referenced by lexer | |
$placeholders | array | Array is keyed based on current $nestingLevel | |
$stripWhitespaceFlag | boolean | Whether or not to strip whitespace | |
$whitespaceCharacters | Whitespace characters that occur in tags. |
Метод | Описание | |
---|---|---|
compile ( string $string, null | string $templateName = null ) : array | Compile a string into a set of tokens | |
disableStripWhitespace ( null | boolean $flag = null ) : boolean | |
Set or get the flag indicating whether or not to strip whitespace | |
getManager ( ) : null | Phly\Mustache\Mustache | Retrieve the mustache manager | |
setManager ( Phly\Mustache\Mustache $manager ) : |
Set mustache manager |
Метод | Описание | |
---|---|---|
implodePregQuote ( string $glue, array $pieces, string $delimiter = null ) : string | Implode and preg_quote() an array of $pieces | |
replaceTokens ( array $originalTokens, array $replacements ) : array | Inject replacements from template inheritance | |
stripWhitespace ( ref &$tokens, integer $position ) : void | Strip whitespace in content tokens surrounding a given token |
public getManager ( ) : null | Phly\Mustache\Mustache | ||
Результат | null | Phly\Mustache\Mustache |
public setManager ( Phly\Mustache\Mustache $manager ) : |
||
$manager | Phly\Mustache\Mustache | |
Результат |
protected stripWhitespace ( ref &$tokens, integer $position ) : void | ||
$tokens | ref | Reference to the tokens array |
$position | integer | |
Результат | void |
protected Mustache,Phly\Mustache $manager | ||
Результат | Phly\Mustache\Mustache |
protected int $nestingLevel | ||
Результат | integer |
protected array $patterns | ||
Результат | array |
protected array $placeholders | ||
Результат | array |
protected bool $stripWhitespaceFlag | ||
Результат | boolean |