Zend_Dojo_View_Helper_Dojo: Dojo View Helper

Allows specifying stylesheets, path to dojo, module paths, and onLoad events.

package Zend_Dojo
subpackage View
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Proxy to container methods

__call(string $method, array $args) : mixed

Parameters

$method

string

$args

array

Exceptions

\Zend_Dojo_View_Exception For invalid method calls

Returns

mixed

Initialize helper

__construct() : void

Retrieve container from registry or create new container and store in registry.

Return dojo container

dojo() : \Zend_Dojo_View_Helper_Dojo_Container

Returns

\Zend_Dojo_View_Helper_Dojo_Container

Set whether or not dijits should be created declaratively

setUseDeclarative() : void
Static

Set whether or not dijits should be created programmatically

setUseProgrammatic(integer $style = self::PROGRAMMATIC_SCRIPT) : void
Static

Optionally, specifiy whether or not dijit helpers should generate the programmatic dojo.

Parameters

$style

integer

Set view object

setView(\Zend_Dojo_View_Interface $view) : void

Parameters

$view

\Zend_Dojo_View_Interface

Should dijits be created declaratively?

useDeclarative() : boolean
Static

Returns

boolean

Should dijits be created programmatically?

useProgrammatic() : boolean
Static

Returns

boolean

Should dijits be created programmatically but without scripts?

useProgrammaticNoScript() : boolean
Static

Returns

boolean

 Properties

 

$view

$view : \Zend_View_Interface

Default

 

$_container

$_container : \Zend_Dojo_View_Helper_Dojo_Container

Default

 

Whether or not dijits should be declared programmatically

$_useProgrammatic : boolean

Default

true
Static

 Constants

 

PROGRAMMATIC_NOSCRIPT

PROGRAMMATIC_NOSCRIPT = -1 
 

PROGRAMMATIC_SCRIPT

PROGRAMMATIC_SCRIPT = 1