Dojo/View/Helper/Dijit.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: Dijit.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Dojo_View_Helper_Dijit
Dojo dijit base class
- Parent(s)
- \Zend_View_Helper_HtmlElement < \Zend_View_Helper_Abstract
- Children
- \Zend_Dojo_View_Helper_Editor
- \Zend_Dojo_View_Helper_DateTextBox
- \Zend_Dojo_View_Helper_SimpleTextarea
- \Zend_Dojo_View_Helper_ComboBox
- \Zend_Dojo_View_Helper_TextBox
- \Zend_Dojo_View_Helper_NumberSpinner
- \Zend_Dojo_View_Helper_Form
- \Zend_Dojo_View_Helper_Button
- \Zend_Dojo_View_Helper_DijitContainer
- \Zend_Dojo_View_Helper_ValidationTextBox
- \Zend_Dojo_View_Helper_TimeTextBox
- \Zend_Dojo_View_Helper_CurrencyTextBox
- \Zend_Dojo_View_Helper_CheckBox
- \Zend_Dojo_View_Helper_RadioButton
- \Zend_Dojo_View_Helper_Slider
- \Zend_Dojo_View_Helper_Textarea
- \Zend_Dojo_View_Helper_NumberTextBox
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- \global\Zend_View_Helper_Abstract
Constants
Properties

string $_closingBracket = null
nullDetails- Type
- string
- Inherited_from
- \Zend_View_Helper_HtmlElement::$$_closingBracket

array $_jsonParams = array('constraints')Parameters that should be JSON encoded
array('constraints')Details- Type
- array

string $_rootNode = 'div'Root node element type for layout elements
'div'Details- Type
- string

\Zend_View_Interface $view = nullView object
Inherited from: \Zend_View_Helper_Abstract::$$view\Zend_View_Helper_HtmlElement::$$viewnullDetails- Type
- \Zend_View_Interface
- Inherited_from
- \Zend_View_Helper_Abstract::$$view
- Inherited_from
- \Zend_View_Helper_HtmlElement::$$view
Methods

_castBoolToString(mixed $item, string $key) : voidCast a boolean to a string value
| Name | Type | Description |
|---|---|---|
| $item | mixed | |
| $key | string |

_createDijit(string $dijit, string $id, array $params) : voidCreate a dijit programmatically
| Name | Type | Description |
|---|---|---|
| $dijit | string | |
| $id | string | |
| $params | array |

_createFormElement(string $id, string $value, array $params, array $attribs, string | null $dijit = null) : stringCreate HTML representation of a dijit form element
| Name | Type | Description |
|---|---|---|
| $id | string | |
| $value | string | |
| $params | array | |
| $attribs | array | |
| $dijit | string | null |
| Type | Description |
|---|---|
| string |

_createLayoutContainer(int $id, string $content, array $params, array $attribs, string | null $dijit = null) : stringCreate a layout container
| Name | Type | Description |
|---|---|---|
| $id | int | |
| $content | string | |
| $params | array | |
| $attribs | array | |
| $dijit | string | null |
| Type | Description |
|---|---|
| string |

_htmlAttribs(array $attribs) : stringConverts an associative array to a string of tag attributes.
Inherited from: \Zend_View_Helper_HtmlElement::_htmlAttribs()| Name | Type | Description |
|---|---|---|
| $attribs | array | From this array, each key-value pair is converted to an attribute name and value. |
| Type | Description |
|---|---|
| string | The XHTML for the attributes. |
- Access
- public

_normalizeId(string $value) : string
| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| string |

_prepareDijit(array $attribs, array $params, string $type, string $dijit = null) : arrayMerge attributes and parameters
Also sets up requires
| Name | Type | Description |
|---|---|---|
| $attribs | array | |
| $params | array | |
| $type | string | |
| $dijit | string | Dijit type to use (otherwise, pull from $_dijit) |
| Type | Description |
|---|---|
| array |

_renderHiddenElement(string $id, string | int | float $value) : stringRender a hidden element to hold a value
| Name | Type | Description |
|---|---|---|
| $id | string | |
| $value | string | int | float |
| Type | Description |
|---|---|
| string |

_useDeclarative() : boolWhether or not to use declarative dijit creation
| Type | Description |
|---|---|
| bool |

_useProgrammatic() : boolWhether or not to use programmatic dijit creation
| Type | Description |
|---|---|
| bool |

_useProgrammaticNoScript() : boolWhether or not to use programmatic dijit creation w/o script creation
| Type | Description |
|---|---|
| bool |

direct() : voidStrategy pattern: currently unutilized
Inherited from: \Zend_View_Helper_Abstract::direct()\Zend_View_Helper_HtmlElement::direct()
getClosingBracket() : stringGet the tag closing bracket
Inherited from: \Zend_View_Helper_HtmlElement::getClosingBracket()| Type | Description |
|---|---|
| string |

setRootNode(string $value) : \Zend_Dojo_View_Helper_DijitSet root node type
| Name | Type | Description |
|---|---|---|
| $value | string |
| Type | Description |
|---|---|
| \Zend_Dojo_View_Helper_Dijit |

setView(\Zend_View_Interface $view) : \Zend_Dojo_View_Helper_DijitSet view
Set view and enable dojo
| Name | Type | Description |
|---|---|---|
| $view | \Zend_View_Interface |
| Type | Description |
|---|---|
| \Zend_Dojo_View_Helper_Dijit |