API Documentation

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 license@zend.com so we can send you a copy immediately.

category
Zend  
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Dojo  
subpackage
View  
version
$Id: Dijit.php 23775 2011-03-01 17:25:24Z ralph $  

\Zend_Dojo_View_Helper_Dijit

Dojo dijit base class

Extends from
\Zend_View_Helper_HtmlElement
copyright
Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)  
license
New BSD License  
package
Zend_Dojo  
subpackage
View  
uses
\Zend_View_Helper_Abstract  

Properties

Propertyprotectedstring  $_dijit= ''

Dijit being used

Details
Type
string
Propertyprotectedstring  $_elementType= ''

Element type

Details
Type
string
Propertyprotectedarray  $_jsonParams= 'array'

Parameters that should be JSON encoded

Default valuearrayDetails
Type
array
Propertyprotectedstring  $_module= ''

Dojo module to use

Details
Type
string
Propertyprotectedstring  $_rootNode= 'div'

Root node element type for layout elements

Default valuedivDetails
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_htmlAttribs( array $attribs ) : string

Converts an associative array to a string of tag attributes.

Inherited from: \Zend_View_Helper_HtmlElement::_htmlAttribs()
Parameters
Name Type Description
$attribs array

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

Returns
Type Description
string The XHTML for the attributes.
Details
access
public  
methodprotected_isStrictDoctype( ) : boolean

Is doctype strict?

Inherited from: \Zend_View_Helper_HtmlElement::_isStrictDoctype()
Returns
Type Description
boolean
methodprotected_isXhtml( ) : boolean

Is doctype XHTML?

Inherited from: \Zend_View_Helper_HtmlElement::_isXhtml()
Returns
Type Description
boolean
methodprotected_normalizeId( string $value ) : string

Normalize an ID

Inherited from: \Zend_View_Helper_HtmlElement::_normalizeId()
Parameters
Name Type Description
$value string
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
methodpublicdirect( ) : void

Strategy pattern: currently unutilized

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

Get the tag closing bracket

Inherited from: \Zend_View_Helper_HtmlElement::getClosingBracket()
Returns
Type Description
string
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.13.3.