PHP Class Latte\MacroNode

Inheritance: use trait latte\Strict
显示文件 Open project: nette/latte Class Usage Examples

Public Properties

Property Type Description
$args raw arguments
$attrCode string
$closing boolean
$closingCode string
$content string
$context [contentType, context]
$data user data
$empty boolean
$endLine position of end tag in source template
$htmlNode closest HTML node
$innerContent string
$isEmpty
$macro latte\IMacro
$modifiers raw modifier
$name string
$openingCode string
$parentNode MacroNode
$prefix indicates n:attribute macro and type of prefix (PREFIX_INNER, PREFIX_TAG, PREFIX_NONE)
$replaced has output?
$saved
$startLine position of start tag in source template
$tokenizer MacroTokens

Public Methods

Method Description
__construct ( latte\IMacro $macro, $name, $args = NULL, $modifiers = NULL, self $parentNode = NULL, HtmlNode $htmlNode = NULL, $prefix = NULL )
getNotation ( )
setArgs ( $args )

Method Details

__construct() public method

public __construct ( latte\IMacro $macro, $name, $args = NULL, $modifiers = NULL, self $parentNode = NULL, HtmlNode $htmlNode = NULL, $prefix = NULL )
$macro latte\IMacro
$parentNode self
$htmlNode HtmlNode

getNotation() public method

public getNotation ( )

setArgs() public method

public setArgs ( $args )

Property Details

$args public_oe property

raw arguments
public $args

$attrCode public_oe property

public string $attrCode
return string

$closing public_oe property

public bool $closing
return boolean

$closingCode public_oe property

public string $closingCode
return string

$content public_oe property

public string $content
return string

$context public_oe property

[contentType, context]
public $context

$data public_oe property

user data
public $data

$empty public_oe property

public bool $empty
return boolean

$endLine public_oe property

position of end tag in source template
public $endLine

$htmlNode public_oe property

closest HTML node
public $htmlNode

$innerContent public_oe property

public string $innerContent
return string

$isEmpty public_oe property

Deprecation:
public $isEmpty

$macro public_oe property

public IMacro,latte $macro
return latte\IMacro

$modifiers public_oe property

raw modifier
public $modifiers

$name public_oe property

public string $name
return string

$openingCode public_oe property

public string $openingCode
return string

$parentNode public_oe property

public MacroNode,latte $parentNode
return MacroNode

$prefix public_oe property

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

$replaced public_oe property

has output?
public $replaced

$saved public_oe property

public $saved

$startLine public_oe property

position of start tag in source template
public $startLine

$tokenizer public_oe property

public MacroTokens,latte $tokenizer
return MacroTokens