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

  • LatteCompiler
  • LatteFilter
  • LatteToken
  • MacroNode
  • MacroTokenizer
  • Parser
  • PhpWriter

Interfaces

  • IMacro

Exceptions

  • LatteException
  • Overview
  • Package
  • Class
  • Tree

Class PhpWriter

PHP code generator helpers.

Object
Extended by PhpWriter
Package: Nette\Latte
Author: David Grudl
Located at Latte/PhpWriter.php
Methods summary
public static
# using( MacroNode $node, $compiler = NULL )
public
# __construct( MacroTokenizer $argsTokenizer, $modifiers = NULL, LatteCompiler $compiler = NULL )
public string
# write( string $mask )

Expands %node.word, %node.array, %node.args, %escape(), %modify(), %var, %raw in code.

Expands %node.word, %node.array, %node.args, %escape(), %modify(), %var, %raw in code.

Parameters

$mask
string

Returns

string
public string
# formatModifiers( string $var )

Formats modifiers calling.

Formats modifiers calling.

Parameters

$var
string

Returns

string
public string
# formatArgs( )

Formats macro arguments to PHP code.

Formats macro arguments to PHP code.

Returns

string
public string
# formatArray( )

Formats macro arguments to PHP array.

Formats macro arguments to PHP array.

Returns

string
public string
# formatWord( string $s )

Formats parameter to PHP string.

Formats parameter to PHP string.

Parameters

$s
string

Returns

string
public boolean
# canQuote( $tokenizer )

Returns

boolean
public MacroTokenizer
# preprocess( MacroTokenizer $tokenizer = NULL )

Preprocessor for tokens.

Preprocessor for tokens.

Returns

MacroTokenizer
public
# escape( $s )
Methods inherited from Object
__call(), __callStatic(), __get(), __isset(), __set(), __unset(), extensionMethod(), getReflection()
Nette Framework 2.0beta2 (for PHP 5.2) API API documentation generated by ApiGen 2.3.0