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

Interfaces

Exceptions

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

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, LatteCompiler $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( MacroTokenizer $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()
Magic properties inherited from Object
$reflection
Nette Framework 2.0.18 (for PHP 5.2, un-prefixed) API documentation generated by ApiGen 2.8.0