ClientScript Class Reference

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)
CClientScript::render()

Definition at line 85 of file ClientScript.php.

removeAllPageLoadedScriptFilesWhenRenderingInAjaxMode (  )  [protected]

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:
 All Data Structures Functions Variables
Generated on Thu Oct 19 07:10:23 2017