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.
Container for Dojo View Helper
bool $_captureLock = 'false'addOnLoad capture lock
Detailsstring $_captureObj = ''addOnLoad object on which to apply lambda
Detailsstring $_cdnBase = 'Zend_Dojo'Base CDN url to utilize
Detailsstring $_cdnDojoPath = 'Zend_Dojo'Path segment following version string of CDN path
Detailsstring $_cdnVersion = '1.4.1'Dojo version to use from CDN
Detailsbool $_dijitLoaderRegistered = 'false'Has the dijit loader been registered?
Detailsarray $_dijits = 'array'Registered programmatic dijits
Detailsarray $_djConfig = 'array'Dojo configuration
Detailsbool $_enabled = 'false'Whether or not dojo is enabled
Detailsbool $_isXhtml = 'false'Are we rendering as XHTML?
Detailsarray $_javascriptStatements = 'array'Arbitrary javascript to include in dojo script
Detailsarray $_layers = 'array'Dojo layers (custom builds) to use
Detailsstring $_localPath = 'null'Relative path to dojo
Detailsstring $_localRelativePath = 'null'Root of dojo where all dojo files are installed
Detailsarray $_modulePaths = 'array'Registered module paths
Detailsarray $_modules = 'array'Modules to require
Detailsarray $_onLoadActions = 'array'Actions to perform on window load
Detailsbool $_registerDojoStylesheet = 'false'Register the Dojo stylesheet?
Detailsarray $_stylesheetModules = 'array'Style sheet modules to load
Detailsarray $_stylesheets = 'array'Local stylesheets
Detailsarray $_zendLoadActions = 'array'Array of onLoad events specific to Zend_Dojo integration operations
DetailsZend_View_Interface $view = ''
Details__toString(
)
:
stringString representation of dojo environment
Details_addZendLoad(
string $callback
)
:
Zend_Dojo_View_Helper_Dojo_ContainerAdd an onLoad action related to ZF dijit creation
This method is public, but prefixed with an underscore to indicate that it should not normally be called by userland code. It is pertinent to ensuring that the correct order of operations occurs during dijit creation.
Details_getLocalRelativePath(
)
:
stringRetrieve local path to dojo resources for building relative paths
Details_getZendLoadActions(
)
:
arrayRetrieve all ZF dijit callbacks
Details_renderDjConfig(
)
:
stringRender DjConfig values
Details_renderDojoScriptTag(
)
:
stringRender dojo script tag
Renders Dojo script tag by utilizing either local path provided or the CDN. If any djConfig values were set, they will be serialized and passed with that attribute.
Details_renderExtras(
)
:
stringRender dojo module paths and requires
Details_renderLayers(
)
:
stringRender layers (custom builds) as script tags
Details_renderStylesheets(
)
:
stringRender dojo stylesheets
DetailsaddDijit(
string $id, array $params
)
:
Zend_Dojo_View_Helper_Dojo_ContainerAdd a programmatic dijit
DetailsaddDijits(
array $dijits
)
:
Zend_Dojo_View_Helper_Dojo_ContainerAdd multiple dijits at once
Expects an array of id => array $params pairs
DetailsaddJavascript(
string $js
)
:
Zend_Dojo_View_Helper_Dojo_ContainerAdd arbitrary javascript to execute in dojo JS container
DetailsaddLayer(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_ContainerAdd layer (custom build) path
DetailsaddOnLoad(
string $callback
)
:
Zend_Dojo_View_Helper_Dojo_ContainerAdd a script to execute onLoad
dojo.addOnLoad accepts: - function name - lambda
DetailsaddStylesheet(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_ContainerAdd a stylesheet
DetailsaddStylesheetModule(
string $module
)
:
Zend_Dojo_View_Helper_Dojo_ContainerAdd a stylesheet by module name
DetailsclearDijits(
)
:
Zend_Dojo_View_Helper_Dojo_ContainerClear all dijits
DetailsclearJavascript(
)
:
Zend_Dojo_View_Helper_Dojo_ContainerClear arbitrary javascript stack
DetailsclearLayers(
)
:
Zend_Dojo_View_Helper_Dojo_ContainerClear all registered layers
DetailsdijitsToJson(
)
:
stringRender dijits as JSON structure
Detailsdisable(
)
:
Zend_Dojo_View_Helper_Dojo_ContainerDisable dojo
Detailsenable(
)
:
Zend_Dojo_View_Helper_Dojo_ContainerEnable dojo
DetailsgetCdnBase(
)
:
stringReturn CDN base URL
DetailsgetCdnDojoPath(
)
:
stringGet CDN path to dojo (relative to CDN base + version)
DetailsgetCdnVersion(
)
:
stringGet CDN version
DetailsgetDijit(
string $id
)
:
array|nullRetrieve a dijit by id
DetailsgetDijits(
)
:
arrayRetrieve all dijits
Returns dijits as an array of assoc arrays
DetailsgetDjConfig(
)
:
arrayRetrieve dojo configuration values
DetailsgetDjConfigOption(
string $option, mixed $default
=
null
)
:
mixedGet dojo configuration value
DetailsgetJavascript(
)
:
arrayReturn all registered javascript statements
DetailsgetLayers(
)
:
arrayGet registered layers
DetailsgetLocalPath(
)
:
stringGet local path to dojo
DetailsgetModulePaths(
)
:
arrayList registered module paths
DetailsgetModules(
)
:
arrayRetrieve list of modules to require
DetailsgetOnLoadActions(
)
:
arrayRetrieve all registered onLoad actions
DetailsgetStylesheetModules(
)
:
arrayGet all stylesheet modules currently registered
DetailsgetStylesheets(
)
:
arrayRetrieve registered stylesheets
DetailshasDijit(
string $id
)
:
boolIs the given programmatic dijit already registered?
DetailsisEnabled(
)
:
boolIs dojo enabled?
DetailsjavascriptCaptureEnd(
)
:
trueFinish capturing arbitrary javascript to include in dojo script
DetailsjavascriptCaptureStart(
)
:
voidCapture arbitrary javascript to include in dojo script
DetailsonLoadCaptureEnd(
)
:
boolStop capturing routines to run onLoad
DetailsonLoadCaptureStart(
)
:
boolStart capturing routines to run onLoad
DetailsprependOnLoad(
string $callback
)
:
Zend_Dojo_View_Helper_Dojo_ContainerPrepend an onLoad event to the list of onLoad actions
DetailsregisterDijitLoader(
)
:
voidCreate dijit loader functionality
DetailsregisterDojoStylesheet(
null|bool $flag
=
null
)
:
Zend_Dojo_View_Helper_Dojo_Container|boolRegister the dojo.css stylesheet?
With no arguments, returns the status of the flag; with arguments, sets the flag and returns the object.
DetailsregisterModulePath(
string $module, string $path
)
:
Zend_Dojo_View_Helper_Dojo_ContainerRegister a module path
DetailsremoveDijit(
string $id
)
:
Zend_Dojo_View_Helper_Dojo_ContainerRemove a programmatic dijit if it exists
DetailsremoveLayer(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_ContainerRemove a registered layer
DetailsrequireModule(
string|array $modules
)
:
Zend_Dojo_View_Helper_Dojo_ContainerSpecify one or multiple modules to require
DetailssetCdnBase(
string $url
)
:
Zend_Dojo_View_Helper_Dojo_ContainerSet CDN base path
DetailssetCdnDojoPath(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_ContainerSet CDN path to dojo (relative to CDN base + version)
DetailssetCdnVersion(
string $version
=
null
)
:
Zend_Dojo_View_Helper_Dojo_ContainerUse CDN, using version specified
DetailssetDijit(
string $id, array $params
)
:
Zend_Dojo_View_Helper_Dojo_ContainerSet a programmatic dijit (overwrites)
DetailssetDijits(
array $dijits
)
:
Zend_Dojo_View_Helper_Dojo_ContainerSet multiple dijits at once (overwrites)
Expects an array of id => array $params pairs
DetailssetDjConfig(
$config
)
:
Zend_Dojo_View_Helper_Dojo_ContainerSet Dojo configuration
DetailssetDjConfigOption(
string $option, mixed $value
)
:
Zend_Dojo_View_Helper_Dojo_ContainerSet Dojo configuration option
DetailssetLocalPath(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_ContainerSet path to local dojo
DetailssetOptions(
array|Zend_Config $options
)
:
Zend_Dojo_View_Helper_Dojo_ContainerAdd options for the Dojo Container to use
DetailssetView(
Zend_Dojo_View_Interface $view
)
:
voidSet view object
DetailsuseCdn(
)
:
boolAre we using the CDN?
DetailsuseLocalPath(
)
:
boolAre we using a local path?
Details