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
string $_captureObj = ''
addOnLoad object on which to apply lambda
string $_cdnBase = 'Zend_Dojo'
Base CDN url to utilize
string $_cdnDojoPath = 'Zend_Dojo'
Path segment following version string of CDN path
string $_cdnVersion = '1.4.1'
Dojo version to use from CDN
bool $_dijitLoaderRegistered = 'false'
Has the dijit loader been registered?
array $_dijits = 'array'
Registered programmatic dijits
array $_djConfig = 'array'
Dojo configuration
bool $_enabled = 'false'
Whether or not dojo is enabled
bool $_isXhtml = 'false'
Are we rendering as XHTML?
array $_javascriptStatements = 'array'
Arbitrary javascript to include in dojo script
array $_layers = 'array'
Dojo layers (custom builds) to use
string $_localPath = 'null'
Relative path to dojo
string $_localRelativePath = 'null'
Root of dojo where all dojo files are installed
array $_modulePaths = 'array'
Registered module paths
array $_modules = 'array'
Modules to require
array $_onLoadActions = 'array'
Actions to perform on window load
bool $_registerDojoStylesheet = 'false'
Register the Dojo stylesheet?
array $_stylesheetModules = 'array'
Style sheet modules to load
array $_stylesheets = 'array'
Local stylesheets
array $_zendLoadActions = 'array'
Array of onLoad events specific to Zend_Dojo integration operations
Zend_View_Interface $view = ''
__toString(
)
:
string
String representation of dojo environment
_addZendLoad(
string $callback
)
:
Zend_Dojo_View_Helper_Dojo_Container
Add 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.
_getLocalRelativePath(
)
:
string
Retrieve local path to dojo resources for building relative paths
_getZendLoadActions(
)
:
array
Retrieve all ZF dijit callbacks
_renderDjConfig(
)
:
string
Render DjConfig values
_renderDojoScriptTag(
)
:
string
Render 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.
_renderExtras(
)
:
string
Render dojo module paths and requires
_renderLayers(
)
:
string
Render layers (custom builds) as script tags
_renderStylesheets(
)
:
string
Render dojo stylesheets
addDijit(
string $id, array $params
)
:
Zend_Dojo_View_Helper_Dojo_Container
Add a programmatic dijit
addDijits(
array $dijits
)
:
Zend_Dojo_View_Helper_Dojo_Container
Add multiple dijits at once
Expects an array of id => array $params pairs
addJavascript(
string $js
)
:
Zend_Dojo_View_Helper_Dojo_Container
Add arbitrary javascript to execute in dojo JS container
addLayer(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_Container
Add layer (custom build) path
addOnLoad(
string $callback
)
:
Zend_Dojo_View_Helper_Dojo_Container
Add a script to execute onLoad
dojo.addOnLoad accepts: - function name - lambda
addStylesheet(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_Container
Add a stylesheet
addStylesheetModule(
string $module
)
:
Zend_Dojo_View_Helper_Dojo_Container
Add a stylesheet by module name
clearDijits(
)
:
Zend_Dojo_View_Helper_Dojo_Container
Clear all dijits
clearJavascript(
)
:
Zend_Dojo_View_Helper_Dojo_Container
Clear arbitrary javascript stack
clearLayers(
)
:
Zend_Dojo_View_Helper_Dojo_Container
Clear all registered layers
dijitsToJson(
)
:
string
Render dijits as JSON structure
disable(
)
:
Zend_Dojo_View_Helper_Dojo_Container
Disable dojo
enable(
)
:
Zend_Dojo_View_Helper_Dojo_Container
Enable dojo
getCdnBase(
)
:
string
Return CDN base URL
getCdnDojoPath(
)
:
string
Get CDN path to dojo (relative to CDN base + version)
getCdnVersion(
)
:
string
Get CDN version
getDijit(
string $id
)
:
array|null
Retrieve a dijit by id
getDijits(
)
:
array
Retrieve all dijits
Returns dijits as an array of assoc arrays
getDjConfig(
)
:
array
Retrieve dojo configuration values
getDjConfigOption(
string $option, mixed $default
=
null
)
:
mixed
Get dojo configuration value
getJavascript(
)
:
array
Return all registered javascript statements
getLayers(
)
:
array
Get registered layers
getLocalPath(
)
:
string
Get local path to dojo
getModulePaths(
)
:
array
List registered module paths
getModules(
)
:
array
Retrieve list of modules to require
getOnLoadActions(
)
:
array
Retrieve all registered onLoad actions
getStylesheetModules(
)
:
array
Get all stylesheet modules currently registered
getStylesheets(
)
:
array
Retrieve registered stylesheets
hasDijit(
string $id
)
:
bool
Is the given programmatic dijit already registered?
isEnabled(
)
:
bool
Is dojo enabled?
javascriptCaptureEnd(
)
:
true
Finish capturing arbitrary javascript to include in dojo script
javascriptCaptureStart(
)
:
void
Capture arbitrary javascript to include in dojo script
onLoadCaptureEnd(
)
:
bool
Stop capturing routines to run onLoad
onLoadCaptureStart(
)
:
bool
Start capturing routines to run onLoad
prependOnLoad(
string $callback
)
:
Zend_Dojo_View_Helper_Dojo_Container
Prepend an onLoad event to the list of onLoad actions
registerDijitLoader(
)
:
void
Create dijit loader functionality
registerDojoStylesheet(
null|bool $flag
=
null
)
:
Zend_Dojo_View_Helper_Dojo_Container|bool
Register the dojo.css stylesheet?
With no arguments, returns the status of the flag; with arguments, sets the flag and returns the object.
registerModulePath(
string $module, string $path
)
:
Zend_Dojo_View_Helper_Dojo_Container
Register a module path
removeDijit(
string $id
)
:
Zend_Dojo_View_Helper_Dojo_Container
Remove a programmatic dijit if it exists
removeLayer(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_Container
Remove a registered layer
requireModule(
string|array $modules
)
:
Zend_Dojo_View_Helper_Dojo_Container
Specify one or multiple modules to require
setCdnBase(
string $url
)
:
Zend_Dojo_View_Helper_Dojo_Container
Set CDN base path
setCdnDojoPath(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_Container
Set CDN path to dojo (relative to CDN base + version)
setCdnVersion(
string $version
=
null
)
:
Zend_Dojo_View_Helper_Dojo_Container
Use CDN, using version specified
setDijit(
string $id, array $params
)
:
Zend_Dojo_View_Helper_Dojo_Container
Set a programmatic dijit (overwrites)
setDijits(
array $dijits
)
:
Zend_Dojo_View_Helper_Dojo_Container
Set multiple dijits at once (overwrites)
Expects an array of id => array $params pairs
setDjConfig(
$config
)
:
Zend_Dojo_View_Helper_Dojo_Container
Set Dojo configuration
setDjConfigOption(
string $option, mixed $value
)
:
Zend_Dojo_View_Helper_Dojo_Container
Set Dojo configuration option
setLocalPath(
string $path
)
:
Zend_Dojo_View_Helper_Dojo_Container
Set path to local dojo
setOptions(
array|Zend_Config $options
)
:
Zend_Dojo_View_Helper_Dojo_Container
Add options for the Dojo Container to use
setView(
Zend_Dojo_View_Interface $view
)
:
void
Set view object
useCdn(
)
:
bool
Are we using the CDN?
useLocalPath(
)
:
bool
Are we using a local path?