class UIMacros extends MacroSet

Macros for Nette\Application\UI.

  • {link destination ...} control link
  • {plink destination ...} presenter link
  • {snippet ?} ... {/snippet ?} control snippet
  • n:nonce

Methods

static void
install(Compiler $compiler)

No description

void
initialize()

Initializes before template parsing.

array{string,
finalize()

Finishes template parsing.

macroControl(MacroNode $node, PhpWriter $writer)

{control name[:method] [params]}

macroLink(MacroNode $node, PhpWriter $writer)

{link destination [,] [params]} {plink destination [,] [params]} n:href="destination [,] [params]"

macroIfCurrent(MacroNode $node, PhpWriter $writer)

{ifCurrent destination [,] [params]}

macroExtends(MacroNode $node, PhpWriter $writer)

{extends auto}

void
macroTemplatePrint(MacroNode $node)

{templatePrint [parentClass | default]}

Details

at line 36
static void install(Compiler $compiler)

Parameters

Compiler $compiler

Return Value

void

at line 57
void initialize()

Initializes before template parsing.

Return Value

void

at line 67
array{string, finalize()

Finishes template parsing.

Return Value

array{string, string}|array{string}|null (prolog, epilog)

at line 82
macroControl(MacroNode $node, PhpWriter $writer)

{control name[:method] [params]}

Parameters

MacroNode $node
PhpWriter $writer

{link destination [,] [params]} {plink destination [,] [params]} n:href="destination [,] [params]"

Parameters

MacroNode $node
PhpWriter $writer

at line 146
macroIfCurrent(MacroNode $node, PhpWriter $writer)

{ifCurrent destination [,] [params]}

Parameters

MacroNode $node
PhpWriter $writer

at line 162
macroExtends(MacroNode $node, PhpWriter $writer)

{extends auto}

Parameters

MacroNode $node
PhpWriter $writer

at line 174
void macroTemplatePrint(MacroNode $node)

{templatePrint [parentClass | default]}

Parameters

MacroNode $node

Return Value

void