All Data Structures Functions Variables Pages
Public Member Functions | Protected Member Functions
ClientScript Class Reference
Inheritance diagram for ClientScript:

Public Member Functions

 setToAjaxMode ()
 isAjaxMode ()
 renderCoreScripts ()
 render (&$output)
 setIsolationMode ()
 isIsolationMode ()

Protected Member Functions

 removeAllPageLoadedScriptFilesWhenRenderingInAjaxMode ()

Detailed Description

Adds support Ajax support where some javascript files are not needed to be renderd based on position

Definition at line 42 of file ClientScript.php.

Member Function Documentation

setToAjaxMode ( )

Used in AJAX calls to make sure .js files are not rendered again if they are not needed TODO: potentially clear scriptFiles, although this was causing an issue with WorldClock.

Definition at line 55 of file ClientScript.php.

render ( $output)

Method override to call

See Also
removeAllPageLoadedScriptFilesWhenRenderingInAjaxMode (non-PHPdoc)

Definition at line 85 of file ClientScript.php.

removeAllPageLoadedScriptFilesWhenRenderingInAjaxMode ( )

When the page is loading in ajax mode, it is assumed certain script files have always been loaded by the main page. These need to therefore be removed from the scriptFiles array.

Definition at line 103 of file ClientScript.php.

The documentation for this class was generated from the following file:
Generated on Tue May 26 2020 07:10:41