Handles AJAX Requests

Class Methods

The following methods can be invoked on instances of this class.

setObject(mixed pObject)

Sets the ajax object

setObjectId(mixed strId)

getObjectId()

getObject()

Returns the ajax object which made the call

addControlToUpdate(string strControl)

Adds a control to be updated via ajax

getControlsToUpdate()

Returns all controls to be updated via ajax

setEventControl(mixed pEventControl)

getEventControl()

setHasRunEvent(mixed bHasRunEvent)

getHasRunEvent()

getHasRunServerCommand()

handleURL(mixed strURL)

triggerEventAjax(mixed strId, mixed strEvent, mixed strEventId, string strAjaxEventParameter, mixed strIncludedCSS, mixed strIncludedJS)

Triggers an ajax event
Calls all event handlers set by addEventHandlerAjax

navigateAJAX(mixed strURL, mixed strIncludedCSS, mixed strIncludedJS, mixed iDesignId)

Triggers an ajax event
Calls all event handlers set by addEventHandlerAjax

makeURLCompliantForJS(string strURI)

Ensures a URI can be rendered with JS

findNewResources(mixed arrClient, mixed arrServer, mixed strCacheKey)

Locates new resources between client and server

getNewCSS(mixed strIncludedCSS)

Gets the new CSS required to render the controls on the page

getNewJS(mixed strIncludedJS)

Includes the new JS required to render the controls on the page

blockBegin()

blockEnd(mixed strIncludedCSS, string strIncludedJS)

Ends the current AJAX request
Sends to the client a JSON object containing: { css: String of combined local CSS cssRemote: Array of remote CSS files js: String of combined local JS jsRemote: Array of remote JS files }

__call(mixed strName, array arrArguments)

Magic function to trap calls to undefined functions and throw an exception rather than
a fatal error.

__callStatic(mixed strName, array arrArguments)

Magic function to trap static calls to undefined functions and throw an exception rather
than a fatal error.

classGetFolder()

Returns the folder where the class exists

__set_state(mixed arrValues)

classGetFolderResources()

Returns the folder where the class's resources exist

classGetSrcFile()

Returns the folder where the class exists

classGetSrcHash()

Returns the folder where the class exists

classGetReflection()

Returns the reflection data for the current class

classGetReflectionAnnotation(string strField)

Returns a specific class annotation for the current class