class MacroSet implements IMacro

Base IMacro implementation. Allows add multiple macros.

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)

No description

Parameters

Compiler $compiler

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

No description

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()

No description

Return Value

Compiler

at line 160
protected void checkExtraArgs(MacroNode $node)

internal  
 

No description

Parameters

MacroNode $node

Return Value

void

Traits

Better OOP experience.