PHP Класс LightnCandy\Exporter

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
constants ( array\arraystring | integer> $context ) : string Export Runtime constants
helpers ( array\arraystring | integer> $context ) : string Export required custom helper functions
runtime ( array\arraystring | integer> $context ) : string Export required standalone Runtime methods
safestring ( array\arraystring | integer> $context ) : string Export SafeString class as string

Защищенные методы

Метод Описание
closure ( array\arraystring | integer> $context, object $closure ) : string Get PHP code string from a closure of function as string
replaceSafeString ( array\arraystring | integer> $context, string $str ) : string Replace SafeString class with alias class name
scanDependency ( array\arraystring | integer> $context, string $code ) : array Scan for required standalone functions

Описание методов

closure() защищенный статический Метод

Get PHP code string from a closure of function as string
protected static closure ( array\arraystring | integer> $context, object $closure ) : string
$context array\arraystring | integer>
$closure object Closure object
Результат string

constants() публичный статический Метод

Export Runtime constants
public static constants ( array\arraystring | integer> $context ) : string
$context array\arraystring | integer>
Результат string

helpers() публичный статический Метод

Export required custom helper functions
public static helpers ( array\arraystring | integer> $context ) : string
$context array\arraystring | integer>
Результат string

replaceSafeString() защищенный статический Метод

Replace SafeString class with alias class name
protected static replaceSafeString ( array\arraystring | integer> $context, string $str ) : string
$context array\arraystring | integer>
$str string the PHP code to be replaced
Результат string

runtime() публичный статический Метод

Export required standalone Runtime methods
public static runtime ( array\arraystring | integer> $context ) : string
$context array\arraystring | integer>
Результат string

safestring() публичный статический Метод

Export SafeString class as string
public static safestring ( array\arraystring | integer> $context ) : string
$context array\arraystring | integer>
Результат string

scanDependency() защищенный статический Метод

Scan for required standalone functions
protected static scanDependency ( array\arraystring | integer> $context, string $code ) : array
$context array\arraystring | integer>
$code string PHP code string of the method
Результат array