Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationLatte
      • ApplicationTracy
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsLatte
      • Framework
      • HttpTracy
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Drivers
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Templating
    • Utils
  • NetteModule
  • none
  • Tracy

Classes

  • Compiler
  • Engine
  • HtmlNode
  • MacroNode
  • MacroTokens
  • Object
  • Parser
  • PhpWriter
  • Token

Interfaces

  • ILoader
  • IMacro

Exceptions

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

Class Token

Latte parser token.

Latte\Object
Extended by Latte\Token
Namespace: Latte
Author: David Grudl
Located at Latte/Token.php
Methods inherited from Latte\Object
__call(), __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 'htmlAttribute'
#
string COMMENT 'comment'
#
Properties summary
public string $type
#

token type [TEXT | MACRO_TAG | HTML_TAG_BEGIN | HTML_TAG_END | HTML_ATTRIBUTE | COMMENT]

token type [TEXT | MACRO_TAG | HTML_TAG_BEGIN | HTML_TAG_END | HTML_ATTRIBUTE | 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

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

public string $value
#

value of macro tag or HTML attribute; used for types MACRO_TAG, HTML_ATTRIBUTE

value of macro tag or HTML attribute; used for types MACRO_TAG, HTML_ATTRIBUTE

public string $modifiers
#

macro modifiers; used for type MACRO_TAG

macro modifiers; used for type MACRO_TAG

public boolean $closing
#

is closing HTML tag </tag>? used for type HTML_TAG_BEGIN

is closing HTML tag </tag>? used for type 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.2 API documentation generated by ApiGen 2.8.0