Namespaces

  • Latte
    • Loaders
    • Macros
    • Runtime
  • Nette
    • Application
      • Responses
      • Routers
      • UI
    • Bridges
      • ApplicationDI
      • ApplicationLatte
      • ApplicationTracy
      • CacheDI
      • CacheLatte
      • DatabaseDI
      • DatabaseTracy
      • DITracy
      • FormsDI
      • FormsLatte
      • Framework
      • HttpDI
      • HttpTracy
      • MailDI
      • ReflectionDI
      • SecurityDI
      • SecurityTracy
    • Caching
      • Storages
    • ComponentModel
    • Database
      • Conventions
      • Drivers
      • Table
    • DI
      • Config
        • Adapters
      • Extensions
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Loaders
    • Localization
    • Mail
    • Neon
    • PhpGenerator
      • Traits
    • Reflection
    • Security
    • Tokenizer
    • Utils
  • Tracy
    • Bridges
      • Nette
  • none

Classes

  • ClassType
  • Closure
  • Constant
  • Factory
  • GlobalFunction
  • Helpers
  • Method
  • Parameter
  • PhpFile
  • PhpLiteral
  • PhpNamespace
  • Property
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Other releases

Class Helpers

PHP code generator utils.

Nette\PhpGenerator\Helpers uses Nette\StaticClass
Namespace: Nette\PhpGenerator
Located at PhpGenerator/Helpers.php
Methods summary
public static string
# dump( $var )

Returns a PHP representation of a variable.

Returns a PHP representation of a variable.

Returns

string
string
public static string
# format( string $statement, ... $args )

Generates PHP statement.

Generates PHP statement.

Parameters

$statement
$args

Returns

string
string
public static string
# formatArgs( string $statement, array $args )

Generates PHP statement.

Generates PHP statement.

Parameters

$statement
$args

Returns

string
string
public static string
# formatMember( $name )

Returns a PHP representation of a object member.

Returns a PHP representation of a object member.

Returns

string
string
public static string
# formatDocComment( string $content )

Parameters

$content

Returns

string
string
public static string
# unformatDocComment( string $comment )

Parameters

$comment

Returns

string
string
public static boolean
# isIdentifier( $value )

Returns

boolean
bool
public static boolean
# isNamespaceIdentifier( $value, $allowLeadingSlash = false )

Returns

boolean
bool
public static object
# createObject( string $class, array $props )

Parameters

$class
$props

Returns

object
object

Internal

public static string
# extractNamespace( string $name )

Parameters

$name

Returns

string
string
public static string
# extractShortName( string $name )

Parameters

$name

Returns

string
string
public static string
# tabsToSpaces( string $s, integer $count = Nette\PhpGenerator\Helpers::INDENT_LENGTH )

Parameters

$s
$count

Returns

string
string
Methods used from Nette\StaticClass
__callStatic(), __construct()
Constants summary
string PHP_IDENT
#'[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'
integer WRAP_LENGTH
#100
integer INDENT_LENGTH
#4
integer MAX_DEPTH
#50
Nette 2.4-20180918 API API documentation generated by ApiGen 2.8.0