JQuery/View/Helper/JQuery/Container.php
- Category
- ZendX
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- ZendX_JQuery
- Subpackage
- View
- Version
- $Id$
\ZendX_JQuery_View_Helper_JQuery_Container
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
Properties


Boolean $_captureLock = false
false
Details- Type
- Boolean


Boolean $_enabled = false
false
Details- Type
- Boolean


Array $_javascriptSources = array()
array()
Details- Type
- Array


Array $_javascriptStatements = array()
array()
Details- Type
- Array


String $_jqueryLibraryPath = null
null
Details- Type
- String


boolean $_loadSslCdnPath = false
false
Details- Type
- boolean


Integer $_renderMode = \ZendX_JQuery::RENDER_ALL
\ZendX_JQuery::RENDER_ALL
Details- Type
- Integer


Array $_stylesheets = array()
array()
Details- Type
- Array


String $_uiPath = null
null
Details- Type
- String


String $_uiVersion = \ZendX_JQuery::DEFAULT_UI_VERSION
\ZendX_JQuery::DEFAULT_UI_VERSION
Details- Type
- String


String $_version = \ZendX_JQuery::DEFAULT_JQUERY_VERSION
\ZendX_JQuery::DEFAULT_JQUERY_VERSION
Details- Type
- String
Methods


_getJQueryLibraryPath() : string
Internal function that constructs the include path of the jQuery library.
Type | Description |
---|---|
string |


_getJQueryUiLibraryPath() : string
Internal function that constructs the include path of the jQueryUI library.
Type | Description |
---|---|
string |


_renderExtras() : string
Renders all javascript code related stuff of the jQuery enviroment.
Type | Description |
---|---|
string |


_renderScriptTags() : string
Renders all javascript file related stuff of the jQuery enviroment.
Type | Description |
---|---|
string |


addJavascript(string $js) : \ZendX_JQuery_View_Helper_JQuery_Container
Add arbitrary javascript to execute in jQuery JS container
Name | Type | Description |
---|---|---|
$js | string |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


addJavascriptFile(string $path) : \ZendX_JQuery_View_Helper_JQuery_Container
Add a Javascript File to the include stack.
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


addOnLoad(string $callback) : \ZendX_JQuery_View_Helper_JQuery_Container
Add a script to execute onLoad
Name | Type | Description |
---|---|---|
$callback | string | Lambda |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


addStylesheet(string $path) : \ZendX_JQuery_View_Helper_JQuery_Container
Add a stylesheet
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


clearJavascript() : \ZendX_JQuery_View_Helper_JQuery_Container
Clear arbitrary javascript stack
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


clearJavascriptFiles() : \ZendX_JQuery_View_Helper_JQuery_Container
Clear all currently registered Javascript files.
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


clearOnLoadActions() : \ZendX_JQuery_View_Helper_JQuery_Container
Clear the onLoadActions stack.
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


clearStylesheets() : \ZendX_JQuery_View_Helper_JQuery_Container
Clear all currently registered stylesheets files
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


disable() : \ZendX_JQuery_View_Helper_JQuery_Container
Disable jQuery
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


enable() : \ZendX_JQuery_View_Helper_JQuery_Container
Enable jQuery
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


getCdnVersion() : string
Get CDN version
Type | Description |
---|---|
string |
- Deprecated
- As of version 1.8, use {@link getVersion()} instead.


getJavascriptFiles() : array
Return all currently registered Javascript files.
Type | Description |
---|---|
array |


getUiCdnVersion() : String
Return jQuery UI CDN Version
Type | Description |
---|---|
String |
- Deprecated
- As of 1.8 use {@link getUiVersion()}


getUiLocalPath() : string
Proxies to getUiPath() for consistency in function naming.
Type | Description |
---|---|
string |


javascriptCaptureEnd() : boolean
Finish capturing arbitrary javascript to include in jQuery script
Type | Description |
---|---|
boolean |


javascriptCaptureStart() : boolean
Capture arbitrary javascript to include in jQuery script
Type | Description |
---|---|
boolean |
Exception | Description |
---|---|
\Zend_Exception |


onLoadCaptureStart() : boolean
Start capturing routines to run onLoad
Type | Description |
---|---|
boolean |
Exception | Description |
---|---|
\Zend_Exception |


setCdnSsl(bool $flag) : \ZendX_JQuery_View_Helper_JQuery_Container
Set Use SSL on CDN Flag
Name | Type | Description |
---|---|---|
$flag | bool |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


setCdnVersion(string $version = null) : \ZendX_JQuery_View_Helper_JQuery_Container
Use CDN, using version specified. Currently supported by Googles Ajax Library API are: 1.2.3, 1.2.6
Name | Type | Description |
---|---|---|
$version | string |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |
- Deprecated
- As of version 1.8, use {@link setVersion()} instead.


setLocalPath(string $path) : \ZendX_JQuery_View_Helper_JQuery_Container
Set path to local jQuery library
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


setRenderMode(integer $mask) : \ZendX_JQuery_View_Helper_JQuery_Container
Set which parts of the jQuery enviroment should be rendered.
Name | Type | Description |
---|---|---|
$mask | integer |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


setUiCdnVersion(string $version = '1.5.2') : \ZendX_JQuery_View_Helper_JQuery_Container
Set jQuery UI CDN Version
Name | Type | Description |
---|---|---|
$version | string |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |
- Deprecated
- As of 1.8 use {@link setUiVersion()}


setUiLocalPath(String $path) : \ZendX_JQuery_View_Helper_JQuery_Container
Set local path to jQuery UI library
Name | Type | Description |
---|---|---|
$path | String |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


setUiVersion(string $version) : \ZendX_JQuery_View_Helper_JQuery_Container
Set jQuery UI version used.
Name | Type | Description |
---|---|---|
$version | string |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


setVersion(string $version) : \ZendX_JQuery_View_Helper_JQuery_Container
Set the version of the jQuery library used.
Name | Type | Description |
---|---|---|
$version | string |
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


setView(\Zend_View_Interface $view) : void
Set view object
Name | Type | Description |
---|---|---|
$view | \Zend_View_Interface |


uiDisable() : \ZendX_JQuery_View_Helper_JQuery_Container
Disable jQuery UI Library Rendering
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


uiEnable() : \ZendX_JQuery_View_Helper_JQuery_Container
Enable jQuery UI Library Rendering
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |


uiIsEnabled() : boolean
Check wheater currently the jQuery UI library is enabled.
Type | Description |
---|---|
boolean |


useUiCdn() : \ZendX_JQuery_View_Helper_JQuery_Container
Is the jQuery Ui enabled and loaded from CDN?
Type | Description |
---|---|
\ZendX_JQuery_View_Helper_JQuery_Container |