프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 $placeholders | ||
리턴 | array |
protected bool $stripWhitespaceFlag | ||
리턴 | boolean |