PHP Класс Latte\MacroTokens

Автор: David Grudl
Наследование: extends TokenIterator
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$depth integer

Открытые методы

Метод Описание
__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 ( )

Защищенные методы

Метод Описание
next ( )

Описание методов

__construct() публичный метод

public __construct ( $input = NULL )

append() публичный метод

Appends simple token or string (will be parsed).
public append ( $val, $position = NULL ) : static
Результат static

fetchWord() публичный метод

Reads single token (optionally delimited by comma) from string.
public fetchWord ( ) : string
Результат string

fetchWords() публичный метод

Reads single tokens delimited by colon from string.
public fetchWords ( ) : array
Результат array

next() защищенный метод

protected next ( )

parse() публичный метод

public parse ( $s )

prepend() публичный метод

Prepends simple token or string (will be parsed).
public prepend ( $val ) : static
Результат static

reset() публичный метод

public reset ( )

Описание свойств

$depth публичное свойство

public int $depth
Результат integer