Packages

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • none

Classes

  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Other releases
  • Nette homepage

Class NUIMacros

Macros for NUI.

  • {link destination ...} control link
  • {plink destination ...} presenter link
  • {snippet ?} ... {/snippet ?} control snippet
  • {contentType ...} HTTP Content-Type header
  • {status ...} HTTP status
NObject
Extended by NMacroSet implements IMacro
Extended by NUIMacros
Package: Nette\Latte\Macros
Author: David Grudl
Located at Latte/Macros/UIMacros.php
Methods summary
public static
# install( NLatteCompiler $compiler )

Overrides

NMacroSet::install()
public
# initialize( )

Initializes before template parsing.

Initializes before template parsing.

Overrides

NMacroSet::initialize()
public array(prolog,
# finalize( )

Finishes template parsing.

Finishes template parsing.

Returns

array(prolog,
epilog)

Overrides

NMacroSet::finalize()
public
# macroInclude( NMacroNode $node, NPhpWriter $writer )

{include #block}

{include #block}

public
# macroIncludeBlock( NMacroNode $node, NPhpWriter $writer )

{includeblock "file"}

{includeblock "file"}

public
# macroExtends( NMacroNode $node, NPhpWriter $writer )

{extends auto | none | $var | "file"}

{extends auto | none | $var | "file"}

public
# macroBlock( NMacroNode $node, NPhpWriter $writer )

{block [[#]name]} {snippet [name [,]] [tag]} {define [#]name}

{block [[#]name]} {snippet [name [,]] [tag]} {define [#]name}

public
# macroBlockEnd( NMacroNode $node, NPhpWriter $writer )

{/block} {/snippet} {/define}

{/block} {/snippet} {/define}

public
# macroIfset( NMacroNode $node, NPhpWriter $writer )

{ifset #block}

{ifset #block}

public
# macroControl( NMacroNode $node, NPhpWriter $writer )

{control name[:method] [params]}

{control name[:method] [params]}

public
# macroLink( NMacroNode $node, NPhpWriter $writer )

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

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

public
# macroIfCurrent( NMacroNode $node, NPhpWriter $writer )

{ifCurrent destination [,] [params]}

{ifCurrent destination [,] [params]}

public
# macroContentType( NMacroNode $node, NPhpWriter $writer )

{contentType ...}

{contentType ...}

public
# macroStatus( NMacroNode $node, NPhpWriter $writer )

{status ...}

{status ...}

public static
# callBlock( stdClass $context, $name, array $params )

Calls block.

Calls block.

public static
# callBlockParent( stdClass $context, $name, array $params )

Calls parent block.

Calls parent block.

public static
# renderSnippets( NControl $control, stdClass $local, array $params )
Methods inherited from NMacroSet
__construct(), addMacro(), getCompiler(), nodeClosed(), nodeOpened()
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Magic properties inherited from NObject
$reflection
Nette Framework 2.0.18 (for PHP 5.2, prefixed) API documentation generated by ApiGen 2.8.0