Dojo/View/Helper/Dojo/Container.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Dojo
- Subpackage
- View
- Version
- $Id$
\Zend_Dojo_View_Helper_Dojo_Container
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
string $_cdnBase = \Zend_Dojo::CDN_BASE_GOOGLE
\Zend_Dojo::CDN_BASE_GOOGLE
Details- Type
- string
string $_cdnDojoPath = \Zend_Dojo::CDN_DOJO_PATH_GOOGLE
\Zend_Dojo::CDN_DOJO_PATH_GOOGLE
Details- Type
- string
bool $_dijitLoaderRegistered = false
false
Details- Type
- bool
array $_javascriptStatements = array()
array()
Details- Type
- array
string $_localRelativePath = null
null
Details- Type
- string
array $_onLoadActions = array()
array()
Details- Type
- array
array $_zendLoadActions = array()
array()
Details- Type
- array
Methods
_addZendLoad(string $callback) : \Zend_Dojo_View_Helper_Dojo_Container
Add an onLoad action related to ZF dijit creation
Name | Type | Description |
---|---|---|
$callback | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
_getLocalRelativePath() : string
Retrieve local path to dojo resources for building relative paths
Type | Description |
---|---|
string |
_renderDojoScriptTag() : string
Render dojo script tag
Type | Description |
---|---|
string |
addDijit(string $id, array $params) : \Zend_Dojo_View_Helper_Dojo_Container
Add a programmatic dijit
Name | Type | Description |
---|---|---|
$id | string | |
$params | array |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
addDijits(array $dijits) : \Zend_Dojo_View_Helper_Dojo_Container
Add multiple dijits at once
Name | Type | Description |
---|---|---|
$dijits | array |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
addJavascript(string $js) : \Zend_Dojo_View_Helper_Dojo_Container
Add arbitrary javascript to execute in dojo JS container
Name | Type | Description |
---|---|---|
$js | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
addLayer(string $path) : \Zend_Dojo_View_Helper_Dojo_Container
Add layer (custom build) path
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
addOnLoad(string $callback) : \Zend_Dojo_View_Helper_Dojo_Container
Add a script to execute onLoad
Name | Type | Description |
---|---|---|
$callback | string | Lambda |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
addStylesheet(string $path) : \Zend_Dojo_View_Helper_Dojo_Container
Add a stylesheet
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
addStylesheetModule(string $module) : \Zend_Dojo_View_Helper_Dojo_Container
Add a stylesheet by module name
Name | Type | Description |
---|---|---|
$module | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
clearDijits() : \Zend_Dojo_View_Helper_Dojo_Container
Clear all dijits
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
clearJavascript() : \Zend_Dojo_View_Helper_Dojo_Container
Clear arbitrary javascript stack
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
clearLayers() : \Zend_Dojo_View_Helper_Dojo_Container
Clear all registered layers
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
disable() : \Zend_Dojo_View_Helper_Dojo_Container
Disable dojo
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
enable() : \Zend_Dojo_View_Helper_Dojo_Container
Enable dojo
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
getCdnDojoPath() : string
Get CDN path to dojo (relative to CDN base + version)
Type | Description |
---|---|
string |
getDijit(string $id) : array | null
Retrieve a dijit by id
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
array | null |
getDijits() : array
Retrieve all dijits
Type | Description |
---|---|
array |
getDjConfigOption(string $option, mixed $default = null) : mixed
Get dojo configuration value
Name | Type | Description |
---|---|---|
$option | string | |
$default | mixed |
Type | Description |
---|---|
mixed |
getStylesheetModules() : array
Get all stylesheet modules currently registered
Type | Description |
---|---|
array |
hasDijit(string $id) : bool
Is the given programmatic dijit already registered?
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
bool |
javascriptCaptureEnd() : true
Finish capturing arbitrary javascript to include in dojo script
Type | Description |
---|---|
true |
prependOnLoad(string $callback) : \Zend_Dojo_View_Helper_Dojo_Container
Prepend an onLoad event to the list of onLoad actions
Name | Type | Description |
---|---|---|
$callback | string | Lambda |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
registerDojoStylesheet(null | bool $flag = null) : \Zend_Dojo_View_Helper_Dojo_Container | bool
Register the dojo.css stylesheet?
Name | Type | Description |
---|---|---|
$flag | null | bool |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container | bool |
registerModulePath(string $module, string $path) : \Zend_Dojo_View_Helper_Dojo_Container
Register a module path
Name | Type | Description |
---|---|---|
$module | string | The module to register a path for |
$path | string | The path to register for the module |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
removeDijit(string $id) : \Zend_Dojo_View_Helper_Dojo_Container
Remove a programmatic dijit if it exists
Name | Type | Description |
---|---|---|
$id | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
removeLayer(string $path) : \Zend_Dojo_View_Helper_Dojo_Container
Remove a registered layer
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
requireModule(string | array $modules) : \Zend_Dojo_View_Helper_Dojo_Container
Specify one or multiple modules to require
Name | Type | Description |
---|---|---|
$modules | string | array |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setCdnBase(string $url) : \Zend_Dojo_View_Helper_Dojo_Container
Set CDN base path
Name | Type | Description |
---|---|---|
$url | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setCdnDojoPath(string $path) : \Zend_Dojo_View_Helper_Dojo_Container
Set CDN path to dojo (relative to CDN base + version)
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setCdnVersion(string $version = null) : \Zend_Dojo_View_Helper_Dojo_Container
Use CDN, using version specified
Name | Type | Description |
---|---|---|
$version | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setDijit(string $id, array $params) : \Zend_Dojo_View_Helper_Dojo_Container
Set a programmatic dijit (overwrites)
Name | Type | Description |
---|---|---|
$id | string | |
$params | array |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setDijits(array $dijits) : \Zend_Dojo_View_Helper_Dojo_Container
Set multiple dijits at once (overwrites)
Name | Type | Description |
---|---|---|
$dijits | array |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setDjConfig( $config) : \Zend_Dojo_View_Helper_Dojo_Container
Set Dojo configuration
Name | Type | Description |
---|---|---|
$config |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setDjConfigOption(string $option, mixed $value) : \Zend_Dojo_View_Helper_Dojo_Container
Set Dojo configuration option
Name | Type | Description |
---|---|---|
$option | string | |
$value | mixed |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setLocalPath(string $path) : \Zend_Dojo_View_Helper_Dojo_Container
Set path to local dojo
Name | Type | Description |
---|---|---|
$path | string |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setOptions( $options) : \Zend_Dojo_View_Helper_Dojo_Container
Add options for the Dojo Container to use
Name | Type | Description |
---|---|---|
$options |
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |
setView(\Zend_Dojo_View_Interface $view) : void
Set view object
Name | Type | Description |
---|---|---|
$view | \Zend_Dojo_View_Interface |