xajaxCallableObject. inc.phpContains the xajaxCallableObject class Summary
xajaxCallableObject classPlease see copyright.inc.php for a detailed description, copyright and license information. xajaxCallableObjectA class that stores a reference to an object whose methods can be called from the client via a xajax request. xajax will call xajaxCallableObject->generateClientScript so that stub functions can be generated and sent to the browser. Summary
aConfiguration
An associative array that will contain configuration options for zero or more of the objects methods. These configuration options will define the call options for each request. The call options will be passed to the client browser when the function stubs are generated. xajaxCallableObject
Constructs and initializes the xajaxCallableObject
generateRequests
Produces an array of xajaxRequest objects, one for each method exposed by this callable object.
generateClientScript
Called by xajaxCallableObject->generateClientScript while xajax is generating the javascript to be sent to the browser.
isClass
Determins if the specified class name matches the class name of the object referenced by xajaxCallableObject->obj.
Returns
hasMethod
Determines if the specified method name is one of the methods of the object referenced by xajaxCallableObject->obj.
Returns
|
A reference to the callable object.
var $obj
An associative array that will contain configuration options for zero or more of the objects methods.
var $aConfiguration
Constructs and initializes the xajaxCallableObject
function xajaxCallableObject( & $obj )
Returns the name of this callable object.
function getName()
Used to set configuration options / call options for each method.
function configure( $sMethod, $sName, $sValue )
Produces an array of xajaxRequest objects, one for each method exposed by this callable object.
function generateRequests( $sXajaxPrefix )
Called by xajaxCallableObject->generateClientScript while xajax is generating the javascript to be sent to the browser.
function generateClientScript( $sXajaxPrefix )
Determins if the specified class name matches the class name of the object referenced by xajaxCallableObject->obj.
function isClass( $sClass )
Determines if the specified method name is one of the methods of the object referenced by xajaxCallableObject->obj.
function hasMethod( $sMethod )
Call the specified method of the object being referenced using the specified array of arguments.
function call( $sMethod, $aArgs )