Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Properties
Methods
jQuery View Helper. Transports all jQuery stack and render information across all views.
Boolean $_captureLock = 'false'Indicates if a capture start method for javascript or onLoad has been called.
DetailsBoolean $_enabled = 'false'Indicates wheater the jQuery View Helper is enabled.
DetailsBoolean $_isXhtml = 'false'View is rendered in XHTML or not.
DetailsArray $_javascriptSources = 'array'Additional javascript files that for jQuery Helper components.
DetailsArray $_javascriptStatements = 'array'Additional javascript statements that need to be executed after jQuery lib.
DetailsString $_jqueryLibraryPath = 'null'Path to local webserver jQuery library
Detailsboolean $_loadSslCdnPath = 'false'Load CDN Path from SSL or Non-SSL?
DetailsArray $_onLoadActions = 'array'jQuery onLoad statements Stack
DetailsInteger $_renderMode = 'ZendX_JQuery'Default Render Mode (all parts)
DetailsArray $_stylesheets = 'array'Additional stylesheet files for jQuery related components.
DetailsBoolean $_uiEnabled = 'false'jQuery UI Library Enabled
DetailsString $_uiPath = 'null'Local jQuery UI Path. Use Google CDN if variable is null
DetailsString $_uiVersion = 'ZendX_JQuery'jQuery UI Google CDN Version
DetailsString $_version = 'ZendX_JQuery'Default CDN jQuery Library version
Details\Zend_View_Interface $view = 'null'View Instance
Details__toString(
)
:
stringString representation of jQuery environment
Details_getJQueryLibraryBaseCdnUri(
)
:
string
Details_getJQueryLibraryPath(
)
:
stringInternal function that constructs the include path of the jQuery library.
Details_getJQueryUiLibraryBaseCdnUri(
)
:
string
Details_getJQueryUiLibraryPath(
)
:
string
Details_renderExtras(
)
:
stringRenders all javascript code related stuff of the jQuery enviroment.
Details_renderScriptTags(
)
:
stringRenders all javascript file related stuff of the jQuery enviroment.
Details_renderStylesheets(
)
:
stringRender jQuery stylesheets
DetailsaddJavascript(
string $js
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerAdd arbitrary javascript to execute in jQuery JS container
DetailsaddJavascriptFile(
$path
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerAdd a Javascript File to the include stack.
DetailsaddOnLoad(
string $callback
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerAdd a script to execute onLoad
DetailsaddStylesheet(
string $path
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerAdd a stylesheet
DetailsclearJavascript(
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerClear arbitrary javascript stack
DetailsclearJavascriptFiles(
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerClear all currently registered Javascript files.
DetailsclearOnLoadActions(
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerClear the onLoadActions stack.
Detailsdisable(
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerDisable jQuery
Detailsenable(
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerEnable jQuery
DetailsgetCdnSsl(
)
:
booleanGet Flag of SSL on CDN
DetailsgetCdnVersion(
)
:
stringGet CDN version
DetailsgetJavascript(
)
:
arrayReturn all registered javascript statements
DetailsgetJavascriptFiles(
)
:
ArrayReturn all currently registered Javascript files.
This does not include the jQuery library, which is handled by another retrieval strategy.
DetailsgetLocalPath(
)
:
stringGet local path to jQuery
DetailsgetOnLoadActions(
)
:
arrayRetrieve all registered onLoad actions
DetailsgetRenderMode(
)
:
integerReturn bitmask of the current Render Mode
DetailsgetStylesheets(
)
:
arrayRetrieve registered stylesheets
DetailsgetUiCdnVersion(
)
:
StringReturn jQuery UI CDN Version
DetailsgetUiLocalPath(
)
:
stringProxies to getUiPath() for consistency in function naming.
DetailsgetUiPath(
)
:
stringReturn the local jQuery UI Path if set.
DetailsgetUiVersion(
)
:
stringGet jQuery UI Version used.
DetailsgetVersion(
)
:
stringGet the version used with the jQuery library
DetailsisEnabled(
)
:
booleanIs jQuery enabled?
DetailsjavascriptCaptureEnd(
)
:
booleanFinish capturing arbitrary javascript to include in jQuery script
DetailsjavascriptCaptureStart(
)
:
booleanCapture arbitrary javascript to include in jQuery script
DetailsonLoadCaptureEnd(
)
:
booleanStop capturing routines to run onLoad
DetailsonLoadCaptureStart(
)
:
booleanStart capturing routines to run onLoad
DetailssetCdnSsl(
$flag
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerSet Use SSL on CDN Flag
DetailssetCdnVersion(
string $version
=
null
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerUse CDN, using version specified. Currently supported by Googles Ajax Library API are: 1.2.3, 1.2.6
DetailssetLocalPath(
string $path
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerSet path to local jQuery library
DetailssetRenderMode(
integer $mask
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerSet 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.
DetailssetUiCdnVersion(
String $version
=
1.5.2
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerSet jQuery UI CDN Version
DetailssetUiLocalPath(
String $path
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerSet local path to jQuery UI library
DetailssetUiVersion(
string $version
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerSet jQuery UI version used.
DetailssetVersion(
string $version
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerSet the version of the jQuery library used.
DetailssetView(
\Zend_View_Interface $view
)
:
voidSet view object
DetailsuiDisable(
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerDisable jQuery UI Library Rendering
DetailsuiEnable(
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerEnable jQuery UI Library Rendering
DetailsuiIsEnabled(
)
:
booleanCheck wheater currently the jQuery UI library is enabled.
DetailsuseCdn(
)
:
booleanAre we using the CDN?
DetailsuseLocalPath(
)
:
booleanAre we using a local path?
DetailsuseUiCdn(
)
:
\ZendX_JQuery_View_Helper_JQuery_ContainerIs the jQuery Ui enabled and loaded from CDN?
DetailsuseUiLocal(
)
:
booleanIs the jQuery Ui loaded from local scope?
Details