Source for file interceptorServer.php
Documentation is available at interceptorServer.php
* HTML_AJAX_Server with a register itnerceptor class
* The server responds to ajax calls and also serves the js client libraries, so they can be used directly from the PEAR data dir
* 304 not modified headers are used when server client libraries so they will be cached on the browser reducing overhead
* @author Joshua Eichorn <josh@bluga.net>
* @copyright 2007 Joshua Eichorn
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @version Release: 0.5.4
* @link http://pear.php.net/package/HTML_AJAX
// include the server class
include 'HTML/AJAX/Server.php';
// include the test class will be registering
include 'support/test.class.php';
include 'support/test2.class.php';
include 'support/interceptor.php';
// register an instance of the class were registering
$server->registerClass ($test,'test');
$server->registerClass ($test2,'test2');
$server->ajax ->packJavaScript = true;
$server->handleRequest ();
Documentation generated on Fri, 04 Apr 2008 18:30:18 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|