Packages

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

Classes

  • NCacheMacro
  • NCoreMacros
  • NFormMacros
  • NMacroSet
  • NUIMacros
  • Overview
  • Package
  • Class
  • Tree

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 )
public
# initialize( )

Initializes before template parsing.

Initializes before template parsing.

Implementation of

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

Finishes template parsing.

Finishes template parsing.

Returns

array(prolog,
epilog)

Implementation of

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

{include #block}

{include #block}

public
# macroIncludeBlock( NMacroNode $node, $writer )

{includeblock "file"}

{includeblock "file"}

public
# macroExtends( NMacroNode $node, $writer )

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

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

public
# macroBlock( NMacroNode $node, $writer )

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

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

public
# macroBlockEnd( NMacroNode $node, $writer )

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

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

public
# macroIfset( NMacroNode $node, $writer )

{ifset #block}

{ifset #block}

public
# macroControl( NMacroNode $node, $writer )

{control name[:method] [params]}

{control name[:method] [params]}

public
# macroLink( NMacroNode $node, $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, $writer )

{ifCurrent destination [,] [params]}

{ifCurrent destination [,] [params]}

public
# macroContentType( NMacroNode $node, $writer )

{contentType ...}

{contentType ...}

public
# macroStatus( NMacroNode $node, $writer )

{status ...}

{status ...}

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

Calls block.

Calls block.

Parameters

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

Calls parent block.

Calls parent block.

Parameters

$context
stdClass
$name
string
$params
array
public static
# renderSnippets( $control, $local, $params )
Methods inherited from NMacroSet
__construct(), addMacro(), getCompiler(), nodeClosed(), nodeOpened()
Methods inherited from NObject
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Constants summary
string RE_IDENTIFIER '[_a-zA-Z\x7F-\xFF][_a-zA-Z0-9\x7F-\xFF]*'
#
Nette Framework 2.0beta2 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0