Tariqa  3.0
 All Data Structures Namespaces Files Functions Variables Enumerations
multiAjaxCall Class Reference

Public Member Functions

 __construct ($send_user=false)
 getURLList ()
 addURL ($call_url)
 setOnBegin ($onBegin)
 setOnEnd ($onEnd)
 setProcessResult ($processResult)
 generate_js ()

Detailed Description

Helper class to generate javascript code for a multi ajax call (see multi_ajax.js)


Constructor & Destructor Documentation

__construct ( send_user = false)

Constructs the object

Parameters:
boolean$send_userIf true, send also the user name through get to the multi AJAX mechanism [OPTIONAL] public
Returns:
void

Member Function Documentation

addURL ( call_url)

Adds a multi ajax URL

Parameters:
multiAjaxURL$call_urlThe multi AJAX call URL public
Returns:
void

Generates the javascript code public

Returns:
string

Retrieves the list of ursl public

Returns:
multiAjaxURL[]
setOnBegin ( onBegin)

Sets the javascript code to be called before the URL's are sent to the server

Parameters:
string$onBeginThe code public
Returns:
void
setOnEnd ( onEnd)

Sets the javascript code to be called after all the URL's are processed by the server

Parameters:
string$onEndThe code public
Returns:
void
setProcessResult ( processResult)

Sets the name of the function to be called to process each result retrieved from the server

Parameters:
string$processResultThe javascript function name public
Returns:
void

The documentation for this class was generated from the following file: