Source for file Response.php
Documentation is available at Response.php
* OO AJAX Implementation for PHP, contains HTML_AJAX_Response
* @author Elizabeth Smith <auroraeosrose@gmail.com>
* @copyright 2005-2006 Elizabeth Smith
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @version Release: 0.5.4
* Require the main AJAX library
require_once 'HTML/AJAX.php';
* Simple base class for a response object to use as an ajax callback
* This is the base response class, more interesting response classes can be
* built off of this, simply give it a unique content type and override the
* getPayload method or fill the payload property with your extended classes's
* @version $Id: Response.php 536 2006-08-12 01:05:54Z emsmith $
* The base response class uses plain text so use that content type
* Assign a string to this variable to use the bare response class
* Returns the appropriate content type
* This normally simply returns the contentType property but can be overridden
* by an extending class if the content-type is variable
* @return string appropriate content type
* Returns the serialized content of the response class
* You can either fill the payload elsewhere in an extending class and leave
* this method alone, or you can override it if you have a different type
* of payload that needs special treatment
* @return string serialized response content
Documentation generated on Fri, 04 Apr 2008 18:30:23 -0400 by phpDocumentor 1.4.0. PEAR Logo Copyright © PHP Group 2004.
|