PHP Class LightnCandy\Exporter

Afficher le fichier Open project: zordius/lightncandy Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Method Details

closure() protected static méthode

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
Résultat string

constants() public static méthode

Export Runtime constants
public static constants ( array\arraystring | integer> $context ) : string
$context array\arraystring | integer>
Résultat string

helpers() public static méthode

Export required custom helper functions
public static helpers ( array\arraystring | integer> $context ) : string
$context array\arraystring | integer>
Résultat string

replaceSafeString() protected static méthode

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
Résultat string

runtime() public static méthode

Export required standalone Runtime methods
public static runtime ( array\arraystring | integer> $context ) : string
$context array\arraystring | integer>
Résultat string

safestring() public static méthode

Export SafeString class as string
public static safestring ( array\arraystring | integer> $context ) : string
$context array\arraystring | integer>
Résultat string

scanDependency() protected static méthode

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
Résultat array