API Documentation

Zend/Dojo/View/Helper/Dijit.php

Show: inherited
Table of Contents

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.

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 24594 2012-01-05 21:27:01Z matthew $  

\Zend_Dojo_View_Helper_Dijit

Package: Zend\Dojo\View

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  
Used_by
\Zend_Dojo_View_Helper_DateTextBox  
Used_by
\Zend_Dojo_View_Helper_SimpleTextarea  
Used_by
\Zend_Dojo_View_Helper_ComboBox  
Used_by
\Zend_Dojo_View_Helper_TextBox  
Used_by
\Zend_Dojo_View_Helper_NumberSpinner  
Used_by
\Zend_Dojo_View_Helper_Form  
Used_by
\Zend_Dojo_View_Helper_Button  
Used_by
\Zend_Dojo_View_Helper_DijitContainer  
Used_by
\Zend_Dojo_View_Helper_ValidationTextBox  
Used_by
\Zend_Dojo_View_Helper_TimeTextBox  
Used_by
\Zend_Dojo_View_Helper_CurrencyTextBox  
Used_by
\Zend_Dojo_View_Helper_CheckBox  
Used_by
\Zend_Dojo_View_Helper_PasswordTextBox  
Used_by
\Zend_Dojo_View_Helper_RadioButton  
Used_by
\Zend_Dojo_View_Helper_Slider  
Used_by
\Zend_Dojo_View_Helper_Textarea  
Used_by
\Zend_Dojo_View_Helper_NumberTextBox  
Uses
\Zend_View_Helper_Abstract  

Properties

Propertyprotectedstring  $_dijit= ''

Dijit being used

Details
Type
string
Propertyprotectedstring  $_elementType= ''

Element type

Details
Type
string
Propertyprotectedarray  $_jsonParams= 'array('constraints')'

Parameters that should be JSON encoded

Default valuearray('constraints')Details
Type
array
Propertyprotectedstring  $_module= ''

Dojo module to use

Details
Type
string
Propertyprotectedstring  $_rootNode= ''div''

Root node element type for layout elements

Default value'div'Details
Type
string
Propertypublic\Zend_Dojo_View_Helper_Dojo_Container  $dojo= ''

Methods

methodprotected_castBoolToString( mixed $item, string $key ) : void

Cast a boolean to a string value

Parameters
Name Type Description
$item mixed
$key string
methodprotected_createDijit( string $dijit, string $id, array $params ) : void

Create a dijit programmatically

Parameters
Name Type Description
$dijit string
$id string
$params array
methodpublic_createFormElement( string $id, string $value, array $params, array $attribs, string|null $dijit = null ) : string

Create HTML representation of a dijit form element

Parameters
Name Type Description
$id string
$value string
$params array
$attribs array
$dijit string|null
Returns
Type Description
string
methodprotected_createGetParentFormFunction( ) : void

Create JS function for retrieving parent form

methodprotected_createLayoutContainer( int $id, string $content, array $params, array $attribs, string|null $dijit = null ) : string

Create a layout container

Parameters
Name Type Description
$id int
$content string
$params array
$attribs array
$dijit string|null
Returns
Type Description
string
methodprotected_prepareDijit( array $attribs, array $params, string $type, string $dijit = null ) : array

Merge attributes and parameters

Also sets up requires

Parameters
Name Type Description
$attribs array
$params array
$type string
$dijit string

Dijit type to use (otherwise, pull from $_dijit)

Returns
Type Description
array
methodprotected_renderHiddenElement( string $id, string|int|float $value ) : string

Render a hidden element to hold a value

Parameters
Name Type Description
$id string
$value string|int|float
Returns
Type Description
string
methodprotected_useDeclarative( ) : bool

Whether or not to use declarative dijit creation

Returns
Type Description
bool
methodprotected_useProgrammatic( ) : bool

Whether or not to use programmatic dijit creation

Returns
Type Description
bool
methodprotected_useProgrammaticNoScript( ) : bool

Whether or not to use programmatic dijit creation w/o script creation

Returns
Type Description
bool
methodpublicgetRootNode( ) : string

Get root node type

Returns
Type Description
string
methodpublicsetRootNode( string $value ) : \Zend_Dojo_View_Helper_Dijit

Set root node type

Parameters
Name Type Description
$value string
Returns
Type Description
\Zend_Dojo_View_Helper_Dijit
methodpublicsetView( \Zend_View_Interface $view ) : \Zend_Dojo_View_Helper_Dijit

Set view

Set view and enable dojo

Parameters
Name Type Description
$view \Zend_View_Interface
Returns
Type Description
\Zend_Dojo_View_Helper_Dijit
Documentation was generated by DocBlox 0.15.1.