class Helpers

Traits

Static class.

Constants

PHP_IDENT

Methods

static string
dump($var) deprecated

No description

static string
format(string $statement, ...$args) deprecated

No description

static string
formatArgs(string $statement, array $args) deprecated

No description

static string
formatDocComment(string $content)

No description

static string
unformatDocComment(string $comment)

No description

static string
unindent(string $s, int $level = 1)

No description

static bool
isIdentifier($value)

No description

static bool
isNamespaceIdentifier($value, bool $allowLeadingSlash = false)

No description

static string
extractNamespace(string $name)

No description

static string
extractShortName(string $name)

No description

static string
tabsToSpaces(string $s, int $count = 4)

No description

static 
createObject(string $class, array $props)

No description

Details

at line 26
static string dump($var) deprecated

deprecated use Nette\PhpGenerator\Dumper::dump()

Parameters

$var

Return Value

string

at line 33
static string format(string $statement, ...$args) deprecated

deprecated use Nette\PhpGenerator\Dumper::format()

Parameters

string $statement
...$args

Return Value

string

at line 40
static string formatArgs(string $statement, array $args) deprecated

deprecated use Nette\PhpGenerator\Dumper::format()

Parameters

string $statement
array $args

Return Value

string

at line 46
static string formatDocComment(string $content)

Parameters

string $content

Return Value

string

at line 58
static string unformatDocComment(string $comment)

Parameters

string $comment

Return Value

string

at line 64
static string unindent(string $s, int $level = 1)

Parameters

string $s
int $level

Return Value

string

at line 70
static bool isIdentifier($value)

Parameters

$value

Return Value

bool

at line 76
static bool isNamespaceIdentifier($value, bool $allowLeadingSlash = false)

Parameters

$value
bool $allowLeadingSlash

Return Value

bool

at line 83
static string extractNamespace(string $name)

Parameters

string $name

Return Value

string

at line 89
static string extractShortName(string $name)

Parameters

string $name

Return Value

string

at line 95
static string tabsToSpaces(string $s, int $count = 4)

Parameters

string $s
int $count

Return Value

string

at line 102
static createObject(string $class, array $props)

Parameters

string $class
array $props