Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • Compiler
  • Engine
  • Helpers
  • HtmlNode
  • MacroNode
  • MacroTokens
  • Parser
  • PhpHelpers
  • PhpWriter
  • Token
  • TokenIterator
  • Tokenizer

Interfaces

  • ILoader
  • IMacro

Traits

  • Strict

Exceptions

  • CompileException
  • RegexpException
  • RuntimeException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class Token

Latte parser token.

Latte\Token uses Latte\Strict
Namespace: Latte
Located at Latte/Compiler/Token.php
Methods used from Latte\Strict
__call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constants summary
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'
Properties summary
public string $type

token type [TEXT | MACRO_TAG | HTML_TAG_BEGIN | HTML_TAG_END | HTML_ATTRIBUTE_BEGIN | HTML_ATTRIBUTE_END | COMMENT]

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

original text content of the token

#
public integer $line

line number

line number

#
public string $name

name of macro tag, HTML tag or attribute; used for types MACRO_TAG, HTML_TAG_BEGIN, HTML_ATTRIBUTE_BEGIN

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

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

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

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

is tag empty {name/}? used for type MACRO_TAG

#
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0