Class Callback (namespace Nette)


PHP callback encapsulation.

Object
   |
   --Callback
Copyright: Copyright (c) 2004, 2010 David Grudl
Located: in /Callback.php (line 21)
Public Method Summary
Callback
__construct (mixed $t, [string $m = NULL])
callback
Returns PHP callback pseudotype.
mixed
invoke ()
Invokes callback.
mixed
invokeArgs ($args)
Invokes callback with an array of parameters.
bool
Verifies that callback can be called.
mixed
Invokes callback. Do not call directly.
string
Methods Inherited From Object
extensionMethod(), getClass(), getReflection(), __call(), __callStatic(), __get(), __isset(), __set(), __unset()
Variable Summary
static bool $fix520

line 27


Method Details

line 36

__construct

public Callback __construct (mixed $t, [string $m = NULL])

Input
mixed $t class, object, function, callback
string $m method
Output
Callback  

line 138

getNative

public callback getNative ()

Returns PHP callback pseudotype.

Output
callback  

line 97

invoke

public mixed invoke ()

Invokes callback.

Output
mixed  

line 113

invokeArgs

public mixed invokeArgs ($args)

Invokes callback with an array of parameters.

Input
$args
Output
mixed  

line 127

isCallable

public bool isCallable ()

Verifies that callback can be called.

Output
bool  

line 82

__invoke

public mixed __invoke ()

Invokes callback. Do not call directly.

Output
mixed  

line 148

__toString

public string __toString ()

Output
string