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|null $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|null $flags = null)
No description
at line 64
void
initialize()
Initializes before template parsing.
at line 72
finalize()
Finishes template parsing.
at line 82
bool|null
nodeOpened(MacroNode $node)
New node is found.
at line 139
void
nodeClosed(MacroNode $node)
Node is closed.
at line 165
Compiler
getCompiler()
No description
at line 172
protected void
checkExtraArgs(MacroNode $node)
internal |
No description
Traits
Better OOP experience.