Class ZendX_JQuery_View_Helper_JQuery_Container

Description

jQuery View Helper. Transports all jQuery stack and render information across all views.

Located in /JQuery/View/Helper/JQuery/Container.php (line 37)


	
			
Variable Summary
 Zend_View_Interface $view
 Boolean $_captureLock
 Boolean $_enabled
 Boolean $_isXhtml
 Integer $_renderMode
 Boolean $_uiEnabled
 String $_uiPath
 String $_uiVersion
 String $_version
Method Summary
 string getCdnVersion ()
 array getJavascript ()
 string getLocalPath ()
 array getOnLoadActions ()
 integer getRenderMode ()
 array getStylesheets ()
 String getUiCdnVersion ()
 string getUiLocalPath ()
 string getUiPath ()
 string getUiVersion ()
 string getVersion ()
 boolean isEnabled ()
 boolean onLoadCaptureEnd ()
 boolean onLoadCaptureStart ()
 void setView ( $view)
 boolean uiIsEnabled ()
 boolean useCdn ()
 boolean useLocalPath ()
 boolean useUiLocal ()
 string _renderExtras ()
 string _renderScriptTags ()
 string _renderStylesheets ()
 string __toString ()
Variables
Zend_View_Interface $view = null (line 143)

View Instance

  • access: public
Boolean $_captureLock = false (line 65)

Indicates if a capture start method for javascript or onLoad has been called.

  • access: protected
Boolean $_enabled = false (line 58)

Indicates wheater the jQuery View Helper is enabled.

  • access: protected
Boolean $_isXhtml = false (line 93)

View is rendered in XHTML or not.

  • access: protected
Array $_javascriptSources = array() (line 51)

Additional javascript files that for jQuery Helper components.

  • access: protected
Array $_javascriptStatements = array() (line 72)

Additional javascript statements that need to be executed after jQuery lib.

  • access: protected
String $_jqueryLibraryPath = null (line 44)

Path to local webserver jQuery library

  • access: protected
boolean $_loadSslCdnPath = false (line 136)

Load CDN Path from SSL or Non-SSL?

  • access: protected
Array $_onLoadActions = array() (line 86)

jQuery onLoad statements Stack

  • access: protected
Integer $_renderMode = ZendX_JQuery::RENDER_ALL (line 107)

Default Render Mode (all parts)

  • access: protected
Array $_stylesheets = array() (line 79)

Additional stylesheet files for jQuery related components.

  • access: protected
Boolean $_uiEnabled = false (line 114)

jQuery UI Library Enabled

  • access: protected
String $_uiPath = null (line 122)

Local jQuery UI Path. Use Google CDN if variable is null

  • access: protected
String $_uiVersion = ZendX_JQuery::DEFAULT_UI_VERSION (line 129)

jQuery UI Google CDN Version

  • access: protected
String $_version = ZendX_JQuery::DEFAULT_JQUERY_VERSION (line 100)

Default CDN jQuery Library version

  • access: protected
Methods
addJavascript (line 522)

Add arbitrary javascript to execute in jQuery JS container

  • access: public
ZendX_JQuery_View_Helper_JQuery_Container addJavascript (string $js)
  • string $js
addJavascriptFile (line 483)

Add a Javascript File to the include stack.

  • access: public
ZendX_JQuery_View_Helper_JQuery_Container addJavascriptFile ( $path)
  • $path
addOnLoad (line 581)

Add a script to execute onLoad

  • access: public
ZendX_JQuery_View_Helper_JQuery_Container addOnLoad (string $callback)
  • string $callback: Lambda
addStylesheet (line 556)

Add a stylesheet

  • access: public
ZendX_JQuery_View_Helper_JQuery_Container addStylesheet (string $path)
  • string $path
clearJavascript (line 544)

Clear arbitrary javascript stack

  • access: public
clearJavascriptFiles (line 510)

Clear all currently registered Javascript files.

  • access: public
clearOnLoadActions (line 605)

Clear the onLoadActions stack.

  • access: public
disable (line 172)

Disable jQuery

  • access: public
enable (line 161)

Enable jQuery

  • access: public
getCdnVersion (line 230)

Get CDN version

  • deprecated: As of version 1.8, use getVersion() instead.
  • access: public
string getCdnVersion ()
getJavascript (line 534)

Return all registered javascript statements

  • access: public
array getJavascript ()
getJavascriptFiles (line 500)

Return all currently registered Javascript files.

This does not include the jQuery library, which is handled by another retrieval strategy.

  • access: public
Array getJavascriptFiles ()
getLocalPath (line 403)

Get local path to jQuery

  • access: public
string getLocalPath ()
getOnLoadActions (line 595)

Retrieve all registered onLoad actions

  • access: public
array getOnLoadActions ()
getRenderMode (line 632)

Return bitmask of the current Render Mode

  • access: public
integer getRenderMode ()
getStylesheets (line 570)

Retrieve registered stylesheets

  • access: public
array getStylesheets ()
getUiCdnVersion (line 341)

Return jQuery UI CDN Version

String getUiCdnVersion ()
getUiLocalPath (line 373)

Proxies to getUiPath() for consistency in function naming.

  • access: public
string getUiLocalPath ()
getUiPath (line 363)

Return the local jQuery UI Path if set.

  • access: public
string getUiPath ()
getUiVersion (line 318)

Get jQuery UI Version used.

  • access: public
string getUiVersion ()
getVersion (line 206)

Get the version used with the jQuery library

  • access: public
string getVersion ()
isEnabled (line 184)

Is jQuery enabled?

  • access: public
boolean isEnabled ()
javascriptCaptureEnd (line 469)

Finish capturing arbitrary javascript to include in jQuery script

  • access: public
boolean javascriptCaptureEnd ()
javascriptCaptureStart (line 453)

Capture arbitrary javascript to include in jQuery script

  • access: public
boolean javascriptCaptureStart ()
onLoadCaptureEnd (line 439)

Stop capturing routines to run onLoad

  • access: public
boolean onLoadCaptureEnd ()
onLoadCaptureStart (line 423)

Start capturing routines to run onLoad

  • access: public
boolean onLoadCaptureStart ()
setCdnSsl (line 240)

Set Use SSL on CDN Flag

  • access: public
  • $flag
setCdnVersion (line 219)

Use CDN, using version specified. Currently supported by Googles Ajax Library API are: 1.2.3, 1.2.6

  • deprecated: As of version 1.8, use setVersion() instead.
  • access: public
ZendX_JQuery_View_Helper_JQuery_Container setCdnVersion ([string $version = null])
  • string $version
setLocalPath (line 262)

Set path to local jQuery library

  • access: public
ZendX_JQuery_View_Helper_JQuery_Container setLocalPath (string $path)
  • string $path
setRenderMode (line 622)

Set which parts of the jQuery enviroment should be rendered.

This function allows for a gradual refactoring of the jQuery code rendered by calling __toString(). Use ZendX_JQuery::RENDER_* constants. By default all parts of the enviroment are rendered.

ZendX_JQuery_View_Helper_JQuery_Container setRenderMode (integer $mask)
  • integer $mask
setUiCdnVersion (line 330)

Set jQuery UI CDN Version

ZendX_JQuery_View_Helper_JQuery_Container setUiCdnVersion ([String $version = "1.5.2"])
  • String $version
setUiLocalPath (line 352)

Set local path to jQuery UI library

  • access: public
ZendX_JQuery_View_Helper_JQuery_Container setUiLocalPath (String $path)
  • String $path
setUiVersion (line 307)

Set jQuery UI version used.

  • access: public
ZendX_JQuery_View_Helper_JQuery_Container setUiVersion (string $version)
  • string $version
setVersion (line 195)

Set the version of the jQuery library used.

  • access: public
ZendX_JQuery_View_Helper_JQuery_Container setVersion (string $version)
  • string $version
setView (line 151)

Set view object

  • access: public
void setView ( $view)
  • Zend_View_Interface $view
uiDisable (line 285)

Disable jQuery UI Library Rendering

  • access: public
uiEnable (line 273)

Enable jQuery UI Library Rendering

  • access: public
uiIsEnabled (line 296)

Check wheater currently the jQuery UI library is enabled.

  • access: public
boolean uiIsEnabled ()
useCdn (line 251)

Are we using the CDN?

  • access: public
boolean useCdn ()
useLocalPath (line 413)

Are we using a local path?

  • access: public
boolean useLocalPath ()
useUiCdn (line 393)

Is the jQuery Ui enabled and loaded from CDN?

  • access: public
useUiLocal (line 383)

Is the jQuery Ui loaded from local scope?

  • access: public
boolean useUiLocal ()
_getJQueryLibraryBaseCdnUri (line 773)
  • access: protected
string _getJQueryLibraryBaseCdnUri ()
_getJQueryLibraryPath (line 801)

Internal function that constructs the include path of the jQuery library.

  • access: protected
string _getJQueryLibraryPath ()
_getJQueryUiLibraryBaseCdnUri (line 786)
  • access: protected
string _getJQueryUiLibraryBaseCdnUri ()
_getJQueryUiLibraryPath (line 819)
  • access: protected
string _getJQueryUiLibraryPath ()
_renderExtras (line 728)

Renders all javascript code related stuff of the jQuery enviroment.

  • access: protected
string _renderExtras ()
_renderScriptTags (line 696)

Renders all javascript file related stuff of the jQuery enviroment.

  • access: protected
string _renderScriptTags ()
_renderStylesheets (line 661)

Render jQuery stylesheets

  • access: protected
string _renderStylesheets ()
__toString (line 642)

String representation of jQuery environment

  • access: public
string __toString ()

Documentation generated on Mon, 21 Jun 2010 15:54:04 -0400 by phpDocumentor 1.4.3