class MacroSet implements IMacro

Base IMacro implementation. Allows add multiple macros.

Traits

Better OOP experience.

Methods

__construct(Compiler $compiler)

No description

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
nodeOpened(MacroNode $node)

New node is found.

void
nodeClosed(MacroNode $node)

Node is closed.

getCompiler()

No description

void
checkExtraArgs(MacroNode $node)

No description

Details

at line 31
__construct(Compiler $compiler)

Parameters

Compiler $compiler

at line 37
addMacro(string $name, $begin, $end = null, $attr = null, int $flags = null)

Parameters

string $name
$begin
$end
$attr
int $flags

at line 58
void initialize()

Initializes before template parsing.

Return Value

void

at line 67
array|null finalize()

Finishes template parsing.

Return Value

array|null [prolog, epilog]

at line 76
bool|null nodeOpened(MacroNode $node)

New node is found.

Parameters

MacroNode $node

Return Value

bool|null

at line 128
void nodeClosed(MacroNode $node)

Node is closed.

Parameters

MacroNode $node

Return Value

void

at line 153
Compiler getCompiler()

Return Value

Compiler

at line 160
protected void checkExtraArgs(MacroNode $node)

Parameters

MacroNode $node

Return Value

void