PHP Class Latte\MacroTokens

Author: David Grudl
Inheritance: extends TokenIterator
Datei anzeigen Open project: nette/latte Class Usage Examples

Public Properties

Property Type Description
$depth integer

Public Methods

Method 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 ( )

Protected Methods

Method Description
next ( )

Method Details

__construct() public method

public __construct ( $input = NULL )

append() public method

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

fetchWord() public method

Reads single token (optionally delimited by comma) from string.
public fetchWord ( ) : string
return string

fetchWords() public method

Reads single tokens delimited by colon from string.
public fetchWords ( ) : array
return array

next() protected method

protected next ( )

parse() public method

public parse ( $s )

prepend() public method

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

reset() public method

public reset ( )

Property Details

$depth public_oe property

public int $depth
return integer