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
      • Reflection
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
    • Reflection
    • Security
    • Utils
  • none
  • Tracy
    • Bridges
      • Nette

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 MacroTokens

Macro tag tokenizer.

Latte\Object
Extended by Latte\TokenIterator
Extended by Latte\MacroTokens
Namespace: Latte
Located at Latte/MacroTokens.php
Methods summary
public
# __construct( array[] $input = NULL )

Parameters

$input

Overrides

Latte\TokenIterator::__construct()
public
# parse( $s )
public Latte\MacroTokens
# append( $val, $position = NULL )

Appends simple token or string (will be parsed).

Appends simple token or string (will be parsed).

Returns

Latte\MacroTokens
static
public Latte\MacroTokens
# prepend( $val )

Prepends simple token or string (will be parsed).

Prepends simple token or string (will be parsed).

Returns

Latte\MacroTokens
static
public string
# fetchWord( )

Reads single token (optionally delimited by comma) from string.

Reads single token (optionally delimited by comma) from string.

Returns

string
string
public array
# fetchWords( )

Reads single tokens delimited by colon from string.

Reads single tokens delimited by colon from string.

Returns

array
array
public Latte\MacroTokens
# reset( )

Returns

Latte\MacroTokens
static

Overrides

Latte\TokenIterator::reset()
protected
# next( )

Moves cursor to next token.

Moves cursor to next token.

Overrides

Latte\TokenIterator::next()
Methods inherited from Latte\TokenIterator
currentToken(), currentValue(), isCurrent(), isNext(), isPrev(), joinAll(), joinUntil(), nextAll(), nextToken(), nextUntil(), nextValue(), scan()
Methods inherited from Latte\Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constants summary
integer T_WHITESPACE
#1
integer T_COMMENT
#2
integer T_SYMBOL
#3
integer T_NUMBER
#4
integer T_VARIABLE
#5
integer T_STRING
#6
integer T_CAST
#7
integer T_KEYWORD
#8
integer T_CHAR
#9
Properties summary
public integer $depth
#0
Properties inherited from Latte\TokenIterator
$ignored, $position, $tokens
Nette 2.3-20161221 API API documentation generated by ApiGen 2.8.0