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 MacroNode

Macro element node.

Latte\MacroNode uses Latte\Strict
Namespace: Latte
Located at Latte/Compiler/MacroNode.php
Methods summary
public
# __construct( Latte\IMacro $macro, $name, $args = null, $modifiers = null, Latte\MacroNode $parentNode = null, Latte\HtmlNode $htmlNode = null, $prefix = null )
public
# setArgs( $args )
public
# getNotation( )
Methods used from Latte\Strict
__call(), __callStatic(), __get(), __isset(), __set(), __unset()
Constants summary
string PREFIX_INNER
#'inner'
string PREFIX_TAG
#'tag'
string PREFIX_NONE
#'none'
Properties summary
public Latte\IMacro $macro
#
public string $name
#
public boolean $empty
#false
public $isEmpty

Deprecated

#
public string $args

raw arguments

raw arguments

#
public string $modifiers

raw modifier

raw modifier

#
public boolean $closing
#false
public boolean $replaced

has output?

has output?

#
public Latte\MacroTokens $tokenizer
#
public Latte\MacroNode $parentNode
#
public string $openingCode
#
public string $closingCode
#
public string $attrCode
#
public string $content
#
public string $innerContent
#
public stdClass $data

user data

user data

#
public Latte\HtmlNode $htmlNode

closest HTML node

closest HTML node

#
public array $context

[contentType, context]

[contentType, context]

#
public string $prefix

indicates n:attribute macro and type of prefix (PREFIX_INNER, PREFIX_TAG, PREFIX_NONE)

indicates n:attribute macro and type of prefix (PREFIX_INNER, PREFIX_TAG, PREFIX_NONE)

#
public integer $startLine

position of start tag in source template

position of start tag in source template

#
public integer $endLine

position of end tag in source template

position of end tag in source template

#
public $saved

Internal

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