Methods summary
public static
Nette\Callback
|
#
create( mixed $callback, string $m = NULL )
Factory. Workaround for missing (new Callback)->invoke() in PHP 5.3.
Factory. Workaround for missing (new Callback)->invoke() in PHP 5.3.
Parameters
- $callback
- object, callable
- $m
- method
Returns
|
public
|
#
__construct( mixed $cb, string $m = NULL )
Parameters
- $cb
- object, callable
- $m
- method
|
public
mixed
|
#
__invoke( )
Invokes callback. Do not call directly.
Invokes callback. Do not call directly.
Returns
mixed mixed
|
public
mixed
|
#
invoke( )
Invokes callback.
Returns
mixed mixed
|
public
mixed
|
#
invokeArgs( array $args )
Invokes callback with an array of parameters.
Invokes callback with an array of parameters.
Parameters
Returns
mixed mixed
|
public
boolean
|
#
isCallable( )
Verifies that callback can be called.
Verifies that callback can be called.
Returns
boolean bool
|
public
string|array|Closure
|
#
getNative( )
Returns PHP callback pseudotype.
Returns PHP callback pseudotype.
Returns
string|array|Closure string|array|\Closure
|
public
Nette\Reflection\GlobalFunction |Nette\Reflection\Method
|
#
toReflection( )
Returns callback reflection.
Returns callback reflection.
Returns
|
public
boolean
|
|
public
Nette\Callback
|
#
bindTo( $newthis )
Duplicates the callback with a new bound object.
Duplicates the callback with a new bound object.
Returns
|
public
string
|
|