Class Callback

Description

Callback class

Create subclasses from this class to override the call() method to accept however many arguments by value/reference.

Example:


1 $callback =& new Callback('check');
2 if ($callback->exists()) {
3 $callback->call($arg);
4 }

See test_File.php file for examples.

Located in Program_Root/Callback.php (line 41)


	
			
Method Summary
void Callback (mixed $method, string $file)
mixed call ([mixed $arg = null])
bool exists ()
void get_method ()
void &get_object ()
void set_method (mixed $method)
void set_object (mixed &$object)
Methods
Constructor Callback (line 61)

Constructor

void Callback (mixed $method, string $file)
  • string $file
call (line 119)

Call

This method can be overidden in a subclass to handle as many arguments as necessary, also deal with references.

mixed call ([mixed $arg = null])
  • mixed $arg
exists (line 102)

Method exists

bool exists ()
get_method (line 77)

Get method

void get_method ()
get_object (line 93)

Get object

void &get_object ()
set_method (line 69)

Set method

void set_method (mixed $method)
set_object (line 85)

Set object

void set_object (mixed &$object)

Documention generated on Wed, 16 Jul 2003 01:02:58 +0100 by phpDocumentor 1.2.0