/** * Register method passthrough to HTML_AJAX * * @see HTML_AJAX::registerClass for docs */ function registerClass(&$instance, $exportedName = false, $exportedMethods = false) { $this->ajax->registerClass($instance, $exportedName, $exportedMethods); }
* * * @category HTML * @package AJAX * @author Joshua Eichorn <*****@*****.**> * @copyright 2005 Joshua Eichorn * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @version Release: 0.5.6 * @link http://pear.php.net/package/HTML_AJAX */ include 'HTML/AJAX.php'; include '../support/test.class.php'; $ajax = new HTML_AJAX(); $ajax->serializer = "Null"; $ajax->unserializer = "Null"; $ajax->registerClass(new test()); if ($ajax->handleRequest()) { die; } ?> <html> <head> <script type='text/javascript' src="../server.php?client=all&stub=all"></script> </head> <body> <script type="text/javascript"> var t = new test(); var t2 = new test({echo_string: function(){ endCall('Async Echo'); totalA(); }}); var time1;