MacroSet
class MacroSet implements Macro
Base Macro implementation. Allows add multiple macros.
Methods
addMacro(string $name, string|callable|null $begin, string|callable|null $end = null, string|callable|null $attr = null, int $flags = null)
No description
void
initialize()
Initializes before template parsing.
finalize()
Finishes template parsing.
bool|null
void
getCompiler()
No description
void
Details
at line 31
__construct(Compiler $compiler)
No description
at line 42
MacroSet
addMacro(string $name, string|callable|null $begin, string|callable|null $end = null, string|callable|null $attr = null, int $flags = null)
No description
at line 63
void
initialize()
Initializes before template parsing.
at line 71
finalize()
Finishes template parsing.
at line 81
bool|null
nodeOpened(MacroNode $node)
New node is found.
at line 137
void
nodeClosed(MacroNode $node)
Node is closed.
at line 163
Compiler
getCompiler()
No description
at line 170
protected void
checkExtraArgs(MacroNode $node)
internal |
No description
Traits
Better OOP experience.