Dojo/View/Helper/Dojo.php
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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Dojo
- Subpackage
- View
- Version
- $Id: Dojo.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Dojo_View_Helper_Dojo
Zend_Dojo_View_Helper_Dojo: Dojo View Helper
Allows specifying stylesheets, path to dojo, module paths, and onLoad events.
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
Properties


bool $_useProgrammatic = true
true
Details- Type
- bool
Methods


__call(string $method, array $args) : mixed
Proxy to container methods
Name | Type | Description |
---|---|---|
$method | string | |
$args | array |
Type | Description |
---|---|
mixed |
Exception | Description |
---|---|
\Zend_Dojo_View_Exception | For invalid method calls |


__construct() : void
Initialize helper
Retrieve container from registry or create new container and store in registry.


dojo() : \Zend_Dojo_View_Helper_Dojo_Container
Return dojo container
Type | Description |
---|---|
\Zend_Dojo_View_Helper_Dojo_Container |


setUseProgrammatic(int $style = self::PROGRAMMATIC_SCRIPT) : void
Set whether or not dijits should be created programmatically
Optionally, specifiy whether or not dijit helpers should generate the programmatic dojo.
Name | Type | Description |
---|---|---|
$style | int |


setView(\Zend_Dojo_View_Interface $view) : void
Set view object
Name | Type | Description |
---|---|---|
$view | \Zend_Dojo_View_Interface |


useProgrammatic() : bool
Should dijits be created programmatically?
Type | Description |
---|---|
bool |