API Documentation

Dojo/View/Helper/Dojo/Container.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Dojo
subpackage
View
version
$Id: Container.php 21705 2010-03-31 17:38:19Z matthew $
Classes
Zend_Dojo_View_Helper_Dojo_Container

Description

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.

Zend_Dojo_View_Helper_Dojo_Container

copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Dojo
subpackage
View
Properties
$view
$_captureLock
$_captureObj
$_cdnBase
$_cdnDojoPath
$_cdnVersion
$_dijitLoaderRegistered
$_dijits
$_djConfig
$_enabled
$_isXhtml
$_javascriptStatements
$_layers
$_localPath
$_localRelativePath
$_modules
$_modulePaths
$_onLoadActions
$_registerDojoStylesheet
$_stylesheetModules
$_stylesheets
$_zendLoadActions
Methods
setView
enable
disable
isEnabled
setOptions
requireModule
getModules
registerModulePath
getModulePaths
addLayer
getLayers
removeLayer
clearLayers
setCdnBase
getCdnBase
setCdnVersion
getCdnVersion
setCdnDojoPath
getCdnDojoPath
useCdn
setLocalPath
getLocalPath
useLocalPath
setDjConfig
setDjConfigOption
getDjConfig
getDjConfigOption
addStylesheetModule
getStylesheetModules
addStylesheet
registerDojoStylesheet
getStylesheets
addOnLoad
prependOnLoad
getOnLoadActions
onLoadCaptureStart
onLoadCaptureEnd
addDijit
setDijit
addDijits
setDijits
hasDijit
getDijit
getDijits
removeDijit
clearDijits
dijitsToJson
registerDijitLoader
addJavascript
getJavascript
clearJavascript
javascriptCaptureStart
javascriptCaptureEnd
__toString
_getLocalRelativePath
_renderStylesheets
_renderDjConfig
_renderDojoScriptTag
_renderLayers
_renderExtras
_addZendLoad
_getZendLoadActions

Description

Container for Dojo View Helper

Properties

$_captureLock

bool $_captureLock = 'false'

addOnLoad capture lock

Details

$_captureLock
bool
visibility
protected
default
false
final
false
static
false

$_captureObj

string $_captureObj = ''

addOnLoad object on which to apply lambda

Details

$_captureObj
string
visibility
protected
default
final
false
static
false

$_cdnBase

string $_cdnBase = 'Zend_Dojo'

Base CDN url to utilize

Details

$_cdnBase
string
visibility
protected
default
Zend_Dojo
final
false
static
false

$_cdnDojoPath

string $_cdnDojoPath = 'Zend_Dojo'

Path segment following version string of CDN path

Details

$_cdnDojoPath
string
visibility
protected
default
Zend_Dojo
final
false
static
false

$_cdnVersion

string $_cdnVersion = '1.4.1'

Dojo version to use from CDN

Details

$_cdnVersion
string
visibility
protected
default
1.4.1
final
false
static
false

$_dijitLoaderRegistered

bool $_dijitLoaderRegistered = 'false'

Has the dijit loader been registered?

Details

$_dijitLoaderRegistered
bool
visibility
protected
default
false
final
false
static
false

$_dijits

array $_dijits = 'array'

Registered programmatic dijits

Details

$_dijits
array
visibility
protected
default
array
final
false
static
false

$_djConfig

array $_djConfig = 'array'

Dojo configuration

Details

$_djConfig
array
visibility
protected
default
array
final
false
static
false

$_enabled

bool $_enabled = 'false'

Whether or not dojo is enabled

Details

$_enabled
bool
visibility
protected
default
false
final
false
static
false

$_isXhtml

bool $_isXhtml = 'false'

Are we rendering as XHTML?

Details

$_isXhtml
bool
visibility
protected
default
false
final
false
static
false

$_javascriptStatements

array $_javascriptStatements = 'array'

Arbitrary javascript to include in dojo script

Details

$_javascriptStatements
array
visibility
protected
default
array
final
false
static
false

$_layers

array $_layers = 'array'

Dojo layers (custom builds) to use

Details

$_layers
array
visibility
protected
default
array
final
false
static
false

$_localPath

string $_localPath = 'null'

Relative path to dojo

Details

$_localPath
string
visibility
protected
default
null
final
false
static
false

$_localRelativePath

string $_localRelativePath = 'null'

Root of dojo where all dojo files are installed

Details

$_localRelativePath
string
visibility
protected
default
null
final
false
static
false

$_modulePaths

array $_modulePaths = 'array'

Registered module paths

Details

$_modulePaths
array
visibility
protected
default
array
final
false
static
false

$_modules

array $_modules = 'array'

Modules to require

Details

$_modules
array
visibility
protected
default
array
final
false
static
false

$_onLoadActions

array $_onLoadActions = 'array'

Actions to perform on window load

Details

$_onLoadActions
array
visibility
protected
default
array
final
false
static
false

$_registerDojoStylesheet

bool $_registerDojoStylesheet = 'false'

Register the Dojo stylesheet?

Details

$_registerDojoStylesheet
bool
visibility
protected
default
false
final
false
static
false

$_stylesheetModules

array $_stylesheetModules = 'array'

Style sheet modules to load

Details

$_stylesheetModules
array
visibility
protected
default
array
final
false
static
false

$_stylesheets

array $_stylesheets = 'array'

Local stylesheets

Details

$_stylesheets
array
visibility
protected
default
array
final
false
static
false

$_zendLoadActions

array $_zendLoadActions = 'array'

Array of onLoad events specific to Zend_Dojo integration operations

Details

$_zendLoadActions
array
visibility
protected
default
array
final
false
static
false

$view

Zend_View_Interface $view = ''

Details

$view
Zend_View_Interface
visibility
public
default
final
false
static
false

Methods

__toString

__toString( ) : string

String representation of dojo environment

Output
string
Details
visibility
public
final
false
static
false

_addZendLoad

_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.

Arguments
$callback
string
Details
visibility
public
final
false
static
false

_getLocalRelativePath

_getLocalRelativePath( ) : string

Retrieve local path to dojo resources for building relative paths

Output
string
Details
visibility
protected
final
false
static
false

_getZendLoadActions

_getZendLoadActions( ) : array

Retrieve all ZF dijit callbacks

Output
array
Details
visibility
public
final
false
static
false

_renderDjConfig

_renderDjConfig( ) : string

Render DjConfig values

Output
string
Details
visibility
protected
final
false
static
false

_renderDojoScriptTag

_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.

Output
string
Details
visibility
protected
final
false
static
false

_renderExtras

_renderExtras( ) : string

Render dojo module paths and requires

Output
string
Details
visibility
protected
final
false
static
false

_renderLayers

_renderLayers( ) : string

Render layers (custom builds) as script tags

Output
string
Details
visibility
protected
final
false
static
false

_renderStylesheets

_renderStylesheets( ) : string

Render dojo stylesheets

Output
string
Details
visibility
protected
final
false
static
false

addDijit

addDijit( string $id, array $params ) : Zend_Dojo_View_Helper_Dojo_Container

Add a programmatic dijit

Arguments
$id
string
$params
array
Details
visibility
public
final
false
static
false

addDijits

addDijits( array $dijits ) : Zend_Dojo_View_Helper_Dojo_Container

Add multiple dijits at once

Expects an array of id => array $params pairs

Arguments
$dijits
array
Details
visibility
public
final
false
static
false

addJavascript

addJavascript( string $js ) : Zend_Dojo_View_Helper_Dojo_Container

Add arbitrary javascript to execute in dojo JS container

Arguments
$js
string
Details
visibility
public
final
false
static
false

addLayer

addLayer( string $path ) : Zend_Dojo_View_Helper_Dojo_Container

Add layer (custom build) path

Arguments
$path
string
Details
visibility
public
final
false
static
false

addOnLoad

addOnLoad( string $callback ) : Zend_Dojo_View_Helper_Dojo_Container

Add a script to execute onLoad

dojo.addOnLoad accepts: - function name - lambda

Arguments
$callback
string
Lambda
Details
visibility
public
final
false
static
false

addStylesheet

addStylesheet( string $path ) : Zend_Dojo_View_Helper_Dojo_Container

Add a stylesheet

Arguments
$path
string
Details
visibility
public
final
false
static
false

addStylesheetModule

addStylesheetModule( string $module ) : Zend_Dojo_View_Helper_Dojo_Container

Add a stylesheet by module name

Arguments
$module
string
Details
visibility
public
final
false
static
false

clearDijits

clearDijits( ) : Zend_Dojo_View_Helper_Dojo_Container

Clear all dijits

Details
visibility
public
final
false
static
false

clearJavascript

clearJavascript( ) : Zend_Dojo_View_Helper_Dojo_Container

Clear arbitrary javascript stack

Details
visibility
public
final
false
static
false

clearLayers

clearLayers( ) : Zend_Dojo_View_Helper_Dojo_Container

Clear all registered layers

Details
visibility
public
final
false
static
false

dijitsToJson

dijitsToJson( ) : string

Render dijits as JSON structure

Output
string
Details
visibility
public
final
false
static
false

disable

disable( ) : Zend_Dojo_View_Helper_Dojo_Container

Disable dojo

Details
visibility
public
final
false
static
false

enable

enable( ) : Zend_Dojo_View_Helper_Dojo_Container

Enable dojo

Details
visibility
public
final
false
static
false

getCdnBase

getCdnBase( ) : string

Return CDN base URL

Output
string
Details
visibility
public
final
false
static
false

getCdnDojoPath

getCdnDojoPath( ) : string

Get CDN path to dojo (relative to CDN base + version)

Output
string
Details
visibility
public
final
false
static
false

getCdnVersion

getCdnVersion( ) : string

Get CDN version

Output
string
Details
visibility
public
final
false
static
false

getDijit

getDijit( string $id ) : array|null

Retrieve a dijit by id

Arguments
$id
string
Output
array|null
Details
visibility
public
final
false
static
false

getDijits

getDijits( ) : array

Retrieve all dijits

Returns dijits as an array of assoc arrays

Output
array
Details
visibility
public
final
false
static
false

getDjConfig

getDjConfig( ) : array

Retrieve dojo configuration values

Output
array
Details
visibility
public
final
false
static
false

getDjConfigOption

getDjConfigOption( string $option, mixed $default = null ) : mixed

Get dojo configuration value

Arguments
$option
string
$default
mixed
Output
mixed
Details
visibility
public
final
false
static
false

getJavascript

getJavascript( ) : array

Return all registered javascript statements

Output
array
Details
visibility
public
final
false
static
false

getLayers

getLayers( ) : array

Get registered layers

Output
array
Details
visibility
public
final
false
static
false

getLocalPath

getLocalPath( ) : string

Get local path to dojo

Output
string
Details
visibility
public
final
false
static
false

getModulePaths

getModulePaths( ) : array

List registered module paths

Output
array
Details
visibility
public
final
false
static
false

getModules

getModules( ) : array

Retrieve list of modules to require

Output
array
Details
visibility
public
final
false
static
false

getOnLoadActions

getOnLoadActions( ) : array

Retrieve all registered onLoad actions

Output
array
Details
visibility
public
final
false
static
false

getStylesheetModules

getStylesheetModules( ) : array

Get all stylesheet modules currently registered

Output
array
Details
visibility
public
final
false
static
false

getStylesheets

getStylesheets( ) : array

Retrieve registered stylesheets

Output
array
Details
visibility
public
final
false
static
false

hasDijit

hasDijit( string $id ) : bool

Is the given programmatic dijit already registered?

Arguments
$id
string
Output
bool
Details
visibility
public
final
false
static
false

isEnabled

isEnabled( ) : bool

Is dojo enabled?

Output
bool
Details
visibility
public
final
false
static
false

javascriptCaptureEnd

javascriptCaptureEnd( ) : true

Finish capturing arbitrary javascript to include in dojo script

Output
true
Details
visibility
public
final
false
static
false

javascriptCaptureStart

javascriptCaptureStart( ) : void

Capture arbitrary javascript to include in dojo script

Details
visibility
public
final
false
static
false

onLoadCaptureEnd

onLoadCaptureEnd( ) : bool

Stop capturing routines to run onLoad

Output
bool
Details
visibility
public
final
false
static
false

onLoadCaptureStart

onLoadCaptureStart( ) : bool

Start capturing routines to run onLoad

Output
bool
Details
visibility
public
final
false
static
false

prependOnLoad

prependOnLoad( string $callback ) : Zend_Dojo_View_Helper_Dojo_Container

Prepend an onLoad event to the list of onLoad actions

Arguments
$callback
string
Lambda
Details
visibility
public
final
false
static
false

registerDijitLoader

registerDijitLoader( ) : void

Create dijit loader functionality

Details
visibility
public
final
false
static
false

registerDojoStylesheet

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.

Arguments
$flag
nullbool
Details
visibility
public
final
false
static
false

registerModulePath

registerModulePath( string $module, string $path ) : Zend_Dojo_View_Helper_Dojo_Container

Register a module path

Arguments
$module
string
The module to register a path for
$path
string
The path to register for the module
Details
visibility
public
final
false
static
false

removeDijit

removeDijit( string $id ) : Zend_Dojo_View_Helper_Dojo_Container

Remove a programmatic dijit if it exists

Arguments
$id
string
Details
visibility
public
final
false
static
false

removeLayer

removeLayer( string $path ) : Zend_Dojo_View_Helper_Dojo_Container

Remove a registered layer

Arguments
$path
string
Details
visibility
public
final
false
static
false

requireModule

requireModule( string|array $modules ) : Zend_Dojo_View_Helper_Dojo_Container

Specify one or multiple modules to require

Arguments
$modules
stringarray
Details
visibility
public
final
false
static
false

setCdnBase

setCdnBase( string $url ) : Zend_Dojo_View_Helper_Dojo_Container

Set CDN base path

Arguments
$url
string
Details
visibility
public
final
false
static
false

setCdnDojoPath

setCdnDojoPath( string $path ) : Zend_Dojo_View_Helper_Dojo_Container

Set CDN path to dojo (relative to CDN base + version)

Arguments
$path
string
Details
visibility
public
final
false
static
false

setCdnVersion

setCdnVersion( string $version = null ) : Zend_Dojo_View_Helper_Dojo_Container

Use CDN, using version specified

Arguments
$version
string
Details
visibility
public
final
false
static
false

setDijit

setDijit( string $id, array $params ) : Zend_Dojo_View_Helper_Dojo_Container

Set a programmatic dijit (overwrites)

Arguments
$id
string
$params
array
Details
visibility
public
final
false
static
false

setDijits

setDijits( array $dijits ) : Zend_Dojo_View_Helper_Dojo_Container

Set multiple dijits at once (overwrites)

Expects an array of id => array $params pairs

Arguments
$dijits
array
Details
visibility
public
final
false
static
false

setDjConfig

setDjConfig(  $config ) : Zend_Dojo_View_Helper_Dojo_Container

Set Dojo configuration

Arguments
$config
Details
visibility
public
final
false
static
false

setDjConfigOption

setDjConfigOption( string $option, mixed $value ) : Zend_Dojo_View_Helper_Dojo_Container

Set Dojo configuration option

Arguments
$option
string
$value
mixed
Details
visibility
public
final
false
static
false

setLocalPath

setLocalPath( string $path ) : Zend_Dojo_View_Helper_Dojo_Container

Set path to local dojo

Arguments
$path
string
Details
visibility
public
final
false
static
false

setOptions

setOptions( array|Zend_Config $options ) : Zend_Dojo_View_Helper_Dojo_Container

Add options for the Dojo Container to use

Arguments
$options
arrayZend_Config
Array or Zend_Config object with options to use
Details
visibility
public
final
false
static
false

setView

setView( Zend_Dojo_View_Interface $view ) : void

Set view object

Arguments
$view
Zend_Dojo_View_Interface
Details
visibility
public
final
false
static
false

useCdn

useCdn( ) : bool

Are we using the CDN?

Output
bool
Details
visibility
public
final
false
static
false

useLocalPath

useLocalPath( ) : bool

Are we using a local path?

Output
bool
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.