xajaxFunctionPlugin. inc.phpContains the xajaxFunctionPlugin class Summary
xajaxFunctionPlugin classPlease see copyright.inc.php for a detailed description, copyright and license information. Summary
XAJAX_FUNCTIONSpecifies that the item being registered via the xajax->register function is a php function available at global scope, or a specific function from an instance of an object. xajaxFunctionPluginSummary
aFunctions
An array of xajaxUserFunction object that are registered and available via a xajax.request call. xajaxFunctionPlugin
Constructs and initializes the xajaxFunctionPlugin. The GET and POST data is searched for xajax function call parameters. This will later be used to determine if the request is for a registered function in xajaxFunctionPlugin->canProcessRequest register
Provides a mechanism for functions to be registered and made available to the page via the javascript xajax.request call. generateClientScript
Called by the xajaxPluginManager during the client script generation phase. This is used to generate a block of javascript code that will contain function declarations that can be used on the browser through javascript to initiate xajax requests. processRequest
Called by the xajaxPluginManager when a request needs to be processed. Returns
|
Call this function to register request handlers, including functions, callable objects and events.
function register( $sType, $mArg )
An array of xajaxUserFunction object that are registered and available via a xajax.request call.
var $aFunctions
xajax.request = function()
A configuration setting that is stored locally and used during the client script generation phase.
var $sXajaxPrefix
Configuration option that can be used to request that the javascript file is loaded after the page has been fully loaded.
var $sDefer
This string is used to temporarily hold the name of the function that is being requested (during the request processing phase).
var $sRequestedFunction
Constructs and initializes the xajaxFunctionPlugin.
function xajaxFunctionPlugin()
Sets/stores configuration options used by this plugin.
function configure( $sName, $mValue )
Provides a mechanism for functions to be registered and made available to the page via the javascript xajax.request call.
function register( $aArgs )
Called by the xajaxPluginManager during the client script generation phase.
function generateClientScript()
Determines whether or not the current request can be processed by this plugin.
function canProcessRequest()
Called by the xajaxPluginManager when a request needs to be processed.
function processRequest()