PHP 클래스 Nette\Utils\Callback

상속: use trait Nette\StaticClass
파일 보기 프로젝트 열기: nette/utils 1 사용 예제들

공개 메소드들

메소드 설명
check ( $callable, $syntax = FALSE ) : callable
closure ( $callable, $m = NULL ) : Closure
invoke ( $callable, $args ) : mixed Invokes callback.
invokeArgs ( $callable, array $args = [] ) : mixed Invokes callback with an array of parameters.
invokeSafe ( $function, array $args, $onError ) : mixed Invokes internal PHP function with own error handler.
isStatic ( $callable ) : boolean
toReflection ( $callable ) : ReflectionMethod | ReflectionFunction
toString ( $callable ) : string
unwrap ( Closure $closure ) : callable Unwraps closure created by self::closure()

메소드 상세

check() 공개 정적인 메소드

public static check ( $callable, $syntax = FALSE ) : callable
리턴 callable

closure() 공개 정적인 메소드

public static closure ( $callable, $m = NULL ) : Closure
리턴 Closure

invoke() 공개 정적인 메소드

Invokes callback.
public static invoke ( $callable, $args ) : mixed
리턴 mixed

invokeArgs() 공개 정적인 메소드

Invokes callback with an array of parameters.
public static invokeArgs ( $callable, array $args = [] ) : mixed
$args array
리턴 mixed

invokeSafe() 공개 정적인 메소드

Invokes internal PHP function with own error handler.
public static invokeSafe ( $function, array $args, $onError ) : mixed
$args array
리턴 mixed

isStatic() 공개 정적인 메소드

public static isStatic ( $callable ) : boolean
리턴 boolean

toReflection() 공개 정적인 메소드

public static toReflection ( $callable ) : ReflectionMethod | ReflectionFunction
리턴 ReflectionMethod | ReflectionFunction

toString() 공개 정적인 메소드

public static toString ( $callable ) : string
리턴 string

unwrap() 공개 정적인 메소드

Unwraps closure created by self::closure()
public static unwrap ( Closure $closure ) : callable
$closure Closure
리턴 callable