xajaxEvent. inc.php

Definition of the xajax Event object.

Summary
Definition of the xajax Event object.
Please see copyright.inc.php for a detailed description, copyright and license information.
A container class which holds a reference to handler functions and configuration options associated with a registered event.
The name of the event.
Configuration / call options to be used when initiating a xajax request to trigger this event.
A list of xajaxUserFunction objects associated with this registered event.
Construct and initialize this xajaxEvent object.
Returns the name of the event.
Sets/stores configuration options that will be used when generating the client script that is sent to the browser.
Adds a xajaxUserFunction object to the list of handlers that will be fired when the event is triggered.
Generates a xajaxRequest object that corresponds to the event so that the client script can easily invoke this event.
Generates a block of javascript code that declares a stub function that can be used to easily trigger the event from the browser.
Called by the xajaxEventPlugin when the event has been triggered.

xajaxEvent

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

xajaxEvent

A container class which holds a reference to handler functions and configuration options associated with a registered event.

Summary
The name of the event.
Configuration / call options to be used when initiating a xajax request to trigger this event.
A list of xajaxUserFunction objects associated with this registered event.
Construct and initialize this xajaxEvent object.
Returns the name of the event.
Sets/stores configuration options that will be used when generating the client script that is sent to the browser.
Adds a xajaxUserFunction object to the list of handlers that will be fired when the event is triggered.
Generates a xajaxRequest object that corresponds to the event so that the client script can easily invoke this event.
Generates a block of javascript code that declares a stub function that can be used to easily trigger the event from the browser.
Called by the xajaxEventPlugin when the event has been triggered.

Variables

sName

var $sName

The name of the event.

aConfiguration

var $aConfiguration

Configuration / call options to be used when initiating a xajax request to trigger this event.

aHandlers

var $aHandlers

A list of xajaxUserFunction objects associated with this registered event.  Each of these functions will be called when the event is triggered.

Functions

xajaxEvent

function xajaxEvent($sName)

Construct and initialize this xajaxEvent object.

getName

function getName()

Returns the name of the event.

Returns

stringthe name of the event.

configure

function configure($sName,
$mValue)

Sets/stores configuration options that will be used when generating the client script that is sent to the browser.

addHandler

function addHandler(&$xuf)

Adds a xajaxUserFunction object to the list of handlers that will be fired when the event is triggered.

generateRequest

function generateRequest($sXajaxPrefix,
$sEventPrefix)

Generates a xajaxRequest object that corresponds to the event so that the client script can easily invoke this event.

sXajaxPrefix(string): The prefix that will be prepended to the client script stub function associated with this event.
sEventPrefix(string): The prefix prepended to the client script function stub and xajaxRequest script.

generateClientScript

function generateClientScript($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.

fire

function fire($aArgs)

Called by the xajaxEventPlugin when the event has been triggered.

This file contains detailed information regarding the xajax project, current version, copyrights, licnese and documentation.
var $sName
The name of the event.
var $aConfiguration
Configuration / call options to be used when initiating a xajax request to trigger this event.
var $aHandlers
A list of xajaxUserFunction objects associated with this registered event.
Construct instances of this class to define functions that will be registered with the xajax request processor.
function xajaxEvent($sName)
Construct and initialize this xajaxEvent object.
function getName()
Returns the name of the event.
function configure($sName,
$mValue)
Sets/stores configuration options that will be used when generating the client script that is sent to the browser.
function addHandler(&$xuf)
Adds a xajaxUserFunction object to the list of handlers that will be fired when the event is triggered.
function generateRequest($sXajaxPrefix,
$sEventPrefix)
Generates a xajaxRequest object that corresponds to the event so that the client script can easily invoke this event.
Used to store and generate the client script necessary to invoke a xajax request from the browser to the server script.
function generateClientScript($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 fire($aArgs)
Called by the xajaxEventPlugin when the event has been triggered.
Plugin that adds server side event handling capabilities to xajax.