Class Callback

Description

Callback storage

This class allows storing of callbacks in an object.

Located in /phpsatk-lib/core/01.callback.php (line 34)


	
			
Method Summary
Callback __construct ()
mixed call (mixed 0)
mixed callArray ([array(int=>mixed) $args = array()])
boolean check ()
Methods
Constructor __construct (line 60)

Initialize a new callback

Function callback (one argument):

  1. $callback = new Callback('somefunction');

Static method callback (two arguments):

  1. $callback = new Callback('class', 'method');

  • access: public
Callback __construct ()
call (line 82)

Calls the function

Variable arguments, directly passed to the called function

  • access: public
mixed call (mixed 0)
  • mixed 0: ... Variable arguments
callArray (line 110)

Calls the function

Passes the arguments given in the array

  • access: public
mixed callArray ([array(int=>mixed) $args = array()])
  • array(int=>mixed) $args: Array of arguments
check (line 98)

Checks wheter the callback is valid

  • access: public
boolean check ()

Documentation generated on Mon, 21 May 2007 10:34:32 +0200 by phpDocumentor 1.3.0RC5