xajaxPlugin. inc.php

Contains the xajaxPlugin class

Summary
Contains the xajaxPlugin class
Please see copyright.inc.php for a detailed description, copyright and license information.
The base class for all xajax plugins.
The base class for all xajax request plugins.
Called by the xajaxPluginManager when a configuration setting is changing.
Called by the xajaxPluginManager when a user script when a function, event or callable object is to be registered.
Called by xajaxPluginManager when the page’s HTML is being sent to the browser.
Called by the xajaxPluginManager when a request has been received to determine if the request is for a xajax enabled function or for the initial page load.
Called by the xajaxPluginManager when a request is being processed.
Base class for all xajax response plugins.
A reference to the current xajaxResponse object that is being used to build the response that will be sent to the client browser.
Called by the xajaxResponse object that is currently being used to build the response that will be sent to the client browser.
Used internally to add a command to the response command list.
Called by the xajaxPluginManager when the user script requests a plugin.
Called by xajaxResponse when a user script requests the service of a response plugin.

xajaxPlugin class

Please see copyright.inc.php for a detailed description, copyright and license information.

xajaxPlugin

The base class for all xajax plugins.

xajaxRequestPlugin

The base class for all xajax request plugins.

Request plugins handle the registration, client script generation and processing of xajax enabled requests.  Each plugin should have a unique signature for both the registration and processing of requests.  During registration, the user will specify a type which will allow the plugin to detect and handle it.  During client script generation, the plugin will generate a xajax.request stub with the prescribed call options and request signature.  During request processing, the plugin will detect the signature generated previously and process the request accordingly.

Summary
Called by the xajaxPluginManager when a configuration setting is changing.
Called by the xajaxPluginManager when a user script when a function, event or callable object is to be registered.
Called by xajaxPluginManager when the page’s HTML is being sent to the browser.
Called by the xajaxPluginManager when a request has been received to determine if the request is for a xajax enabled function or for the initial page load.
Called by the xajaxPluginManager when a request is being processed.

Functions

configure

function configure($sName,
$mValue)

Called by the xajaxPluginManager when a configuration setting is changing.  Plugins should store a local copy of the settings they wish to use during registration, client script generation or request processing.

register

function register($aArgs)

Called by the xajaxPluginManager when a user script when a function, event or callable object is to be registered.  Additional plugins may support other registration types.

generateClientScript

function generateClientScript()

Called by xajaxPluginManager when the page’s HTML is being sent to the browser.  This allows each plugin to inject some script / style or other appropriate tags into the HEAD of the document.  Each block must be appropriately enclosed, meaning javascript code must be enclosed in SCRIPT and /SCRIPT tags.

canProcessRequest

function canProcessRequest()

Called by the xajaxPluginManager when a request has been received to determine if the request is for a xajax enabled function or for the initial page load.

processRequest

function processRequest()

Called by the xajaxPluginManager when a request is being processed.  This will only occur when xajax has determined that the current request is a valid (registered) xajax enabled function via xajax->canProcessRequest.

xajaxResponsePlugin

Base class for all xajax response plugins.

A response plugin provides additional services not already provided by the xajaxResponse class with regard to sending response commands to the client.  In addition, a response command may send javascript to the browser at page load to aid in the processing of it’s response commands.

Summary
A reference to the current xajaxResponse object that is being used to build the response that will be sent to the client browser.
Called by the xajaxResponse object that is currently being used to build the response that will be sent to the client browser.
Used internally to add a command to the response command list.
Called by the xajaxPluginManager when the user script requests a plugin.
Called by xajaxResponse when a user script requests the service of a response plugin.

Variables

objResponse

var $objResponse

A reference to the current xajaxResponse object that is being used to build the response that will be sent to the client browser.

Functions

setResponse

function setResponse(&$objResponse)

Called by the xajaxResponse object that is currently being used to build the response that will be sent to the client browser.

objResponse(object): A reference to the xajaxResponse object

addCommand

function addCommand($aAttributes,
$sData)

Used internally to add a command to the response command list.  This will call xajaxResponse->addPluginCommand using the reference provided in xajaxResponsePlugin->setResponse.

getName

function getName()

Called by the xajaxPluginManager when the user script requests a plugin.  This name must match the plugin name requested in the called to xajaxResponse->plugin.

process

function process()

Called by xajaxResponse when a user script requests the service of a response plugin.  The parameters provided by the user will be used to determine which response command and parameters will be sent to the client upon completion of the xajax request process.

This file contains detailed information regarding the xajax project, current version, copyrights, licnese and documentation.
function configure($sName,
$mValue)
Called by the xajaxPluginManager when a configuration setting is changing.
function register($aArgs)
Called by the xajaxPluginManager when a user script when a function, event or callable object is to be registered.
function generateClientScript()
Called by xajaxPluginManager when the page’s HTML is being sent to the browser.
function canProcessRequest()
Called by the xajaxPluginManager when a request has been received to determine if the request is for a xajax enabled function or for the initial page load.
function processRequest()
Called by the xajaxPluginManager when a request is being processed.
var $objResponse
A reference to the current xajaxResponse object that is being used to build the response that will be sent to the client browser.
Collect commands to be sent back to the browser in response to a xajax request.
function setResponse(&$objResponse)
Called by the xajaxResponse object that is currently being used to build the response that will be sent to the client browser.
function addCommand($aAttributes,
$sData)
Used internally to add a command to the response command list.
function getName()
Called by the xajaxPluginManager when the user script requests a plugin.
function process()
Called by xajaxResponse when a user script requests the service of a response plugin.
xajax.request = function()
function canProcessRequest()
Determines if a call is a xajax request or a page load request.
function addPluginCommand($objPlugin,
$aAttributes,
$mData)
Adds a response command that is generated by a plugin.
function &plugin()
Provides access to registered response plugins.