PHP 클래스 LightnCandy\Exporter

파일 보기 프로젝트 열기: zordius/lightncandy 1 사용 예제들

공개 메소드들

메소드 설명
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