xajaxEvent. inc.phpDefinition of the xajax Event object. Summary
xajaxEventPlease see copyright.inc.php for a detailed description, copyright and license information. xajaxEventA container class which holds a reference to handler functions and configuration options associated with a registered event. Summary
aHandlers
A list of xajaxUserFunction objects associated with this registered event. Each of these functions will be called when the event is triggered. xajaxEvent
Construct and initialize this xajaxEvent object. addHandler
Adds a xajaxUserFunction object to the list of handlers that will be fired when the event is triggered. generateRequest
Generates a xajaxRequest object that corresponds to the event so that the client script can easily invoke this event.
fire
Called by the xajaxEventPlugin when the event has been triggered. |
The name of the event.
var $sName
Configuration / call options to be used when initiating a xajax request to trigger this event.
var $aConfiguration
A list of xajaxUserFunction objects associated with this registered event.
var $aHandlers
Construct and initialize this xajaxEvent object.
function xajaxEvent( $sName )
Returns the name of the event.
function getName()
Sets/stores configuration options that will be used when generating the client script that is sent to the browser.
function configure( $sName, $mValue )
Adds a xajaxUserFunction object to the list of handlers that will be fired when the event is triggered.
function addHandler( & $xuf )
Generates a xajaxRequest object that corresponds to the event so that the client script can easily invoke this event.
function generateRequest( $sXajaxPrefix, $sEventPrefix )
Generates a block of javascript code that declares a stub function that can be used to easily trigger the event from the browser.
function generateClientScript( $sXajaxPrefix, $sEventPrefix )
Called by the xajaxEventPlugin when the event has been triggered.
function fire( $aArgs )