Topic: How to register a single public function of a class
i have a class
class foo {
public function fkt1 () { }
public function fkt2 () { }
}
and i would like to register only fkt2 as xajax-function and i don't want to use XAJAX_CALLABLE_OBJECT;
$foo = new foo();
$xajax = new xajax('ajax.server.php');
$xajax->configure('javascript URI', 'lib/xajax/');
$xajax->register(XAJAX_CALLABLE_OBJECT,$foo);
how can i register only a single public function of a class?