PHP Class Latte\MacroTokens

Author: David Grudl
Inheritance: extends TokenIterator
Afficher le fichier Open project: nette/latte Class Usage Examples

Méthodes publiques

Свойство Type Description
$depth integer

Méthodes publiques

Méthode Description
__construct ( $input = NULL )
append ( $val, $position = NULL ) : static Appends simple token or string (will be parsed).
fetchWord ( ) : string Reads single token (optionally delimited by comma) from string.
fetchWords ( ) : array Reads single tokens delimited by colon from string.
parse ( $s )
prepend ( $val ) : static Prepends simple token or string (will be parsed).
reset ( )

Méthodes protégées

Méthode Description
next ( )

Method Details

__construct() public méthode

public __construct ( $input = NULL )

append() public méthode

Appends simple token or string (will be parsed).
public append ( $val, $position = NULL ) : static
Résultat static

fetchWord() public méthode

Reads single token (optionally delimited by comma) from string.
public fetchWord ( ) : string
Résultat string

fetchWords() public méthode

Reads single tokens delimited by colon from string.
public fetchWords ( ) : array
Résultat array

next() protected méthode

protected next ( )

parse() public méthode

public parse ( $s )

prepend() public méthode

Prepends simple token or string (will be parsed).
public prepend ( $val ) : static
Résultat static

reset() public méthode

public reset ( )

Property Details

$depth public_oe property

public int $depth
Résultat integer