MacroSet
class MacroSet implements IMacro
Base IMacro implementation. Allows add multiple macros.
Methods
addMacro(string $name, $begin, $end = null, $attr = null, int $flags = null)
No description
void
initialize()
Initializes before template parsing.
array|null
finalize()
Finishes template parsing.
bool|null
void
getCompiler()
No description
void
Details
at line 31
__construct(Compiler $compiler)
No description
at line 37
addMacro(string $name, $begin, $end = null, $attr = null, int $flags = null)
No description
at line 58
void
initialize()
Initializes before template parsing.
at line 67
array|null
finalize()
Finishes template parsing.
at line 76
bool|null
nodeOpened(MacroNode $node)
New node is found.
at line 128
void
nodeClosed(MacroNode $node)
Node is closed.
at line 153
Compiler
getCompiler()
No description
at line 160
protected void
checkExtraArgs(MacroNode $node)
internal |
No description
Traits
Better OOP experience.