PHP Class Latte\Macros\MacroSet

Inheritance: extends Latte\Object, implements Latte\IMacro
Afficher le fichier Open project: nette/latte Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( Compiler $compiler )
addMacro ( $name, $begin, $end = NULL, $attr = NULL, $flags = NULL )
finalize ( ) : array(prolog, Finishes template parsing.
getCompiler ( ) : Compiler
initialize ( ) : void Initializes before template parsing.
nodeClosed ( MacroNode $node ) : void Node is closed.
nodeOpened ( MacroNode $node ) : boolean New node is found.

Méthodes protégées

Méthode Description
checkExtraArgs ( MacroNode $node )

Private Methods

Méthode Description
compile ( MacroNode $node, $def ) : string Generates code.

Method Details

__construct() public méthode

public __construct ( Compiler $compiler )
$compiler Latte\Compiler

addMacro() public méthode

public addMacro ( $name, $begin, $end = NULL, $attr = NULL, $flags = NULL )

checkExtraArgs() protected méthode

protected checkExtraArgs ( MacroNode $node )
$node Latte\MacroNode

finalize() public méthode

Finishes template parsing.
public finalize ( ) : array(prolog,
Résultat array(prolog,

getCompiler() public méthode

public getCompiler ( ) : Compiler
Résultat Latte\Compiler

initialize() public méthode

Initializes before template parsing.
public initialize ( ) : void
Résultat void

nodeClosed() public méthode

Node is closed.
public nodeClosed ( MacroNode $node ) : void
$node Latte\MacroNode
Résultat void

nodeOpened() public méthode

New node is found.
public nodeOpened ( MacroNode $node ) : boolean
$node Latte\MacroNode
Résultat boolean