Dojo/View/Helper/Dijit.php

Show: PublicProtectedPrivateinherited
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 24593 2012-01-05 20:35:02Z 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  
Uses
\global\Zend_View_Helper_Abstract  

Constants

>VConstant  EOL = "\n"
inherited
EOL character
Inherited from: \Zend_View_Helper_HtmlElement::EOL

Properties

>VPropertyprotectedstring $_closingBracket = null
inherited
The tag closing bracket
Inherited from: \Zend_View_Helper_HtmlElement::$$_closingBracket
Default valuenullDetails
Type
string
Inherited_from
\Zend_View_Helper_HtmlElement::$$_closingBracket  
>VPropertyprotectedstring $_dijit
Dijit being used
Details
Type
string
>VPropertyprotectedstring $_elementType
Element type
Details
Type
string
>VPropertyprotectedarray $_jsonParams = array('constraints')
Parameters that should be JSON encoded
Default valuearray('constraints')Details
Type
array
>VPropertyprotectedstring $_module
Dojo module to use
Details
Type
string
>VPropertyprotectedstring $_rootNode = 'div'
Root node element type for layout elements
Default value'div'Details
Type
string
>VPropertypublic\Zend_Dojo_View_Helper_Dojo_Container $dojo
>VPropertypublic\Zend_View_Interface $view = null
Default valuenullDetails
Type
\Zend_View_Interface
Inherited_from
\Zend_View_Helper_Abstract::$$view  
Inherited_from
\Zend_View_Helper_HtmlElement::$$view  

Methods

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

Cast a boolean to a string value

Parameters
NameTypeDescription
$itemmixed
$keystring
methodprotected_createDijit(string $dijit, string $id, array $params) : void

Create a dijit programmatically

Parameters
NameTypeDescription
$dijitstring
$idstring
$paramsarray
methodpublic_createFormElement(string $id, string $value, array $params, array $attribs, string | null $dijit = null) : string

Create HTML representation of a dijit form element

Parameters
NameTypeDescription
$idstring
$valuestring
$paramsarray
$attribsarray
$dijitstring | null
Returns
TypeDescription
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
NameTypeDescription
$idint
$contentstring
$paramsarray
$attribsarray
$dijitstring | null
Returns
TypeDescription
string
methodprotected_htmlAttribs(array $attribs) : string
inherited

Converts an associative array to a string of tag attributes.

Inherited from: \Zend_View_Helper_HtmlElement::_htmlAttribs()
Parameters
NameTypeDescription
$attribsarray

From this array, each key-value pair is converted to an attribute name and value.

Returns
TypeDescription
stringThe XHTML for the attributes.
Details
Access
public  
methodprotected_isStrictDoctype() : boolean
inherited

Is doctype strict?

Inherited from: \Zend_View_Helper_HtmlElement::_isStrictDoctype()
Returns
TypeDescription
boolean
methodprotected_isXhtml() : boolean
inherited

Is doctype XHTML?

Inherited from: \Zend_View_Helper_HtmlElement::_isXhtml()
Returns
TypeDescription
boolean
methodprotected_normalizeId(string $value) : string
inherited

Normalize an ID

Inherited from: \Zend_View_Helper_HtmlElement::_normalizeId()
Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
string
methodprotected_prepareDijit(array $attribs, array $params, string $type, string $dijit = null) : array

Merge attributes and parameters

Also sets up requires

Parameters
NameTypeDescription
$attribsarray
$paramsarray
$typestring
$dijitstring

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

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

Render a hidden element to hold a value

Parameters
NameTypeDescription
$idstring
$valuestring | int | float
Returns
TypeDescription
string
methodprotected_useDeclarative() : bool

Whether or not to use declarative dijit creation

Returns
TypeDescription
bool
methodprotected_useProgrammatic() : bool

Whether or not to use programmatic dijit creation

Returns
TypeDescription
bool
methodprotected_useProgrammaticNoScript() : bool

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

Returns
TypeDescription
bool
methodpublicdirect() : void
inherited

Strategy pattern: currently unutilized

Inherited from: \Zend_View_Helper_Abstract::direct()\Zend_View_Helper_HtmlElement::direct()
methodpublicgetClosingBracket() : string
inherited

Get the tag closing bracket

Inherited from: \Zend_View_Helper_HtmlElement::getClosingBracket()
Returns
TypeDescription
string
methodpublicgetRootNode() : string

Get root node type

Returns
TypeDescription
string
methodpublicsetRootNode(string $value) : \Zend_Dojo_View_Helper_Dijit

Set root node type

Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
\Zend_Dojo_View_Helper_Dijit
methodpublicsetView(\Zend_View_Interface $view) : \Zend_Dojo_View_Helper_Dijit

Set view

Set view and enable dojo

Parameters
NameTypeDescription
$view\Zend_View_Interface
Returns
TypeDescription
\Zend_Dojo_View_Helper_Dijit
Documentation was generated by phpDocumentor 2.0.0a12.