Zend Framework
1.12
|
Public Member Functions | |
setView (Zend_View_Interface $view) | |
Set view object. | |
enable () | |
Enable dojo. | |
disable () | |
Disable dojo. | |
isEnabled () | |
Is dojo enabled? | |
setOptions ($options) | |
Add options for the Dojo Container to use. | |
requireModule ($modules) | |
Specify one or multiple modules to require. | |
getModules () | |
Retrieve list of modules to require. | |
registerModulePath ($module, $path) | |
Register a module path. | |
getModulePaths () | |
List registered module paths. | |
addLayer ($path) | |
Add layer (custom build) path. | |
getLayers () | |
Get registered layers. | |
removeLayer ($path) | |
Remove a registered layer. | |
clearLayers () | |
Clear all registered layers. | |
setCdnBase ($url) | |
Set CDN base path. | |
getCdnBase () | |
Return CDN base URL. | |
setCdnVersion ($version=null) | |
Use CDN, using version specified. | |
getCdnVersion () | |
Get CDN version. | |
setCdnDojoPath ($path) | |
Set CDN path to dojo (relative to CDN base + version) | |
getCdnDojoPath () | |
Get CDN path to dojo (relative to CDN base + version) | |
useCdn () | |
Are we using the CDN? | |
setLocalPath ($path) | |
Set path to local dojo. | |
getLocalPath () | |
Get local path to dojo. | |
useLocalPath () | |
Are we using a local path? | |
setDjConfig (array $config) | |
Set Dojo configuration. | |
setDjConfigOption ($option, $value) | |
Set Dojo configuration option. | |
getDjConfig () | |
Retrieve dojo configuration values. | |
getDjConfigOption ($option, $default=null) | |
Get dojo configuration value. | |
addStylesheetModule ($module) | |
Add a stylesheet by module name. | |
getStylesheetModules () | |
Get all stylesheet modules currently registered. | |
addStylesheet ($path) | |
Add a stylesheet. | |
registerDojoStylesheet ($flag=null) | |
Register the dojo.css stylesheet? | |
getStylesheets () | |
Retrieve registered stylesheets. | |
addOnLoad ($callback) | |
Add a script to execute onLoad. | |
prependOnLoad ($callback) | |
Prepend an onLoad event to the list of onLoad actions. | |
getOnLoadActions () | |
Retrieve all registered onLoad actions. | |
onLoadCaptureStart () | |
Start capturing routines to run onLoad. | |
onLoadCaptureEnd () | |
Stop capturing routines to run onLoad. | |
addDijit ($id, array $params) | |
Add a programmatic dijit. | |
setDijit ($id, array $params) | |
Set a programmatic dijit (overwrites) | |
addDijits (array $dijits) | |
Add multiple dijits at once. | |
setDijits (array $dijits) | |
Set multiple dijits at once (overwrites) | |
hasDijit ($id) | |
Is the given programmatic dijit already registered? | |
getDijit ($id) | |
Retrieve a dijit by id. | |
getDijits () | |
Retrieve all dijits. | |
removeDijit ($id) | |
Remove a programmatic dijit if it exists. | |
clearDijits () | |
Clear all dijits. | |
dijitsToJson () | |
Render dijits as JSON structure. | |
registerDijitLoader () | |
Create dijit loader functionality. | |
addJavascript ($js) | |
Add arbitrary javascript to execute in dojo JS container. | |
getJavascript () | |
Return all registered javascript statements. | |
clearJavascript () | |
Clear arbitrary javascript stack. | |
javascriptCaptureStart () | |
Capture arbitrary javascript to include in dojo script. | |
javascriptCaptureEnd () | |
Finish capturing arbitrary javascript to include in dojo script. | |
__toString () | |
String representation of dojo environment. | |
_addZendLoad ($callback) | |
Add an onLoad action related to ZF dijit creation. | |
_getZendLoadActions () | |
Retrieve all ZF dijit callbacks. | |
Public Attributes | |
$view | |
Protected Member Functions | |
_getLocalRelativePath () | |
Retrieve local path to dojo resources for building relative paths. | |
_renderStylesheets () | |
Render dojo stylesheets. | |
_renderDjConfig () | |
Render DjConfig values. | |
_renderDojoScriptTag () | |
Render dojo script tag. | |
_renderLayers () | |
Render layers (custom builds) as script tags. | |
_renderExtras () | |
Render dojo module paths and requires. | |
Protected Attributes | |
$_captureLock = false | |
$_captureObj | |
$_cdnBase = Zend_Dojo::CDN_BASE_GOOGLE | |
$_cdnDojoPath = Zend_Dojo::CDN_DOJO_PATH_GOOGLE | |
$_cdnVersion = '1.5.0' | |
$_dijitLoaderRegistered = false | |
$_dijits = array() | |
$_djConfig = array() | |
$_enabled = false | |
$_isXhtml = false | |
$_javascriptStatements = array() | |
$_layers = array() | |
$_localPath = null | |
$_localRelativePath = null | |
$_modules = array() | |
$_modulePaths = array() | |
$_onLoadActions = array() | |
$_registerDojoStylesheet = false | |
$_stylesheetModules = array() | |
$_stylesheets = array() | |
$_zendLoadActions = array() | |
__toString | ( | ) |
String representation of dojo environment.
_addZendLoad | ( | $callback | ) |
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.
string | $callback |
|
protected |
Retrieve local path to dojo resources for building relative paths.
_getZendLoadActions | ( | ) |
Retrieve all ZF dijit callbacks.
|
protected |
Render DjConfig values.
|
protected |
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.
|
protected |
Render dojo module paths and requires.
|
protected |
Render layers (custom builds) as script tags.
|
protected |
Render dojo stylesheets.
addDijit | ( | $id, | |
array | $params | ||
) |
Add a programmatic dijit.
string | $id | |
array | $params |
addDijits | ( | array | $dijits | ) |
Add multiple dijits at once.
Expects an array of id => array $params pairs
array | $dijits |
addJavascript | ( | $js | ) |
Add arbitrary javascript to execute in dojo JS container.
string | $js |
addLayer | ( | $path | ) |
addOnLoad | ( | $callback | ) |
Add a script to execute onLoad.
dojo.addOnLoad accepts:
string | $callback | Lambda |
addStylesheet | ( | $path | ) |
addStylesheetModule | ( | $module | ) |
Add a stylesheet by module name.
string | $module |
clearDijits | ( | ) |
Clear all dijits.
clearJavascript | ( | ) |
Clear arbitrary javascript stack.
clearLayers | ( | ) |
Clear all registered layers.
dijitsToJson | ( | ) |
Render dijits as JSON structure.
disable | ( | ) |
Disable dojo.
enable | ( | ) |
Enable dojo.
getCdnBase | ( | ) |
Return CDN base URL.
getCdnDojoPath | ( | ) |
Get CDN path to dojo (relative to CDN base + version)
getCdnVersion | ( | ) |
Get CDN version.
getDijit | ( | $id | ) |
Retrieve a dijit by id.
string | $id |
getDijits | ( | ) |
Retrieve all dijits.
Returns dijits as an array of assoc arrays
getDjConfig | ( | ) |
Retrieve dojo configuration values.
getDjConfigOption | ( | $option, | |
$default = null |
|||
) |
Get dojo configuration value.
string | $option | |
mixed | $default |
getJavascript | ( | ) |
Return all registered javascript statements.
getLayers | ( | ) |
Get registered layers.
getLocalPath | ( | ) |
Get local path to dojo.
getModulePaths | ( | ) |
List registered module paths.
getModules | ( | ) |
Retrieve list of modules to require.
getOnLoadActions | ( | ) |
Retrieve all registered onLoad actions.
getStylesheetModules | ( | ) |
Get all stylesheet modules currently registered.
getStylesheets | ( | ) |
Retrieve registered stylesheets.
hasDijit | ( | $id | ) |
Is the given programmatic dijit already registered?
string | $id |
isEnabled | ( | ) |
Is dojo enabled?
javascriptCaptureEnd | ( | ) |
Finish capturing arbitrary javascript to include in dojo script.
javascriptCaptureStart | ( | ) |
Capture arbitrary javascript to include in dojo script.
onLoadCaptureEnd | ( | ) |
Stop capturing routines to run onLoad.
onLoadCaptureStart | ( | ) |
Start capturing routines to run onLoad.
prependOnLoad | ( | $callback | ) |
Prepend an onLoad event to the list of onLoad actions.
string | $callback | Lambda |
registerDijitLoader | ( | ) |
Create dijit loader functionality.
registerDojoStylesheet | ( | $flag = null | ) |
Register the dojo.css stylesheet?
With no arguments, returns the status of the flag; with arguments, sets the flag and returns the object.
null | bool | $flag |
registerModulePath | ( | $module, | |
$path | |||
) |
Register a module path.
string | $module | The module to register a path for |
string | $path | The path to register for the module |
removeDijit | ( | $id | ) |
Remove a programmatic dijit if it exists.
string | $id |
removeLayer | ( | $path | ) |
requireModule | ( | $modules | ) |
Specify one or multiple modules to require.
string | array | $modules |
setCdnBase | ( | $url | ) |
setCdnDojoPath | ( | $path | ) |
Set CDN path to dojo (relative to CDN base + version)
string | $path |
setCdnVersion | ( | $version = null | ) |
Use CDN, using version specified.
string | $version |
setDijit | ( | $id, | |
array | $params | ||
) |
Set a programmatic dijit (overwrites)
string | $id | |
array | $params |
setDijits | ( | array | $dijits | ) |
Set multiple dijits at once (overwrites)
Expects an array of id => array $params pairs
array | $dijits |
setDjConfig | ( | array | $config | ) |
Set Dojo configuration.
string | $option | |
mixed | $value |
setDjConfigOption | ( | $option, | |
$value | |||
) |
Set Dojo configuration option.
string | $option | |
mixed | $value |
setLocalPath | ( | $path | ) |
setOptions | ( | $options | ) |
Add options for the Dojo Container to use.
array|Zend_Config | Array or Zend_Config object with options to use |
setView | ( | Zend_View_Interface | $view | ) |
Set view object.
Zend_Dojo_View_Interface | $view |
useCdn | ( | ) |
Are we using the CDN?
useLocalPath | ( | ) |
Are we using a local path?
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
$view |