Class Token
Latte parser token.
- Latte\Token uses Latte\Strict
__call(),
__callStatic(),
__get(),
__isset(),
__set(),
__unset()
|
string |
TEXT
|
# 'text' |
string |
MACRO_TAG
|
# 'macroTag' |
string |
HTML_TAG_BEGIN
|
# 'htmlTagBegin' |
string |
HTML_TAG_END
|
# 'htmlTagEnd' |
string |
HTML_ATTRIBUTE_BEGIN
|
# 'htmlAttributeBegin' |
string |
HTML_ATTRIBUTE_END
|
# 'htmlAttributeEnd' |
string |
COMMENT
|
# 'comment' |
public
string
|
$type
token type [TEXT | MACRO_TAG | HTML_TAG_BEGIN | HTML_TAG_END | HTML_ATTRIBUTE_BEGIN | HTML_ATTRIBUTE_END | COMMENT] |
|
public
string
|
$text
original text content of the token |
|
public
integer
|
$line
line number |
|
public
string
|
$name
name of macro tag, HTML tag or attribute; used for types MACRO_TAG, HTML_TAG_BEGIN, HTML_ATTRIBUTE_BEGIN |
|
public
string
|
$value
value of macro tag or HTML attribute; used for types MACRO_TAG, HTML_ATTRIBUTE_BEGIN |
|
public
string
|
$modifiers
macro modifiers; used for type MACRO_TAG |
|
public
boolean
|
$closing
is closing macro or HTML tag </tag>? used for types MACRO_TAG, HTML_TAG_BEGIN |
|
public
boolean
|
$empty
is tag empty {name/}? used for type MACRO_TAG |