Zend Framework  1.12
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Zend_Dojo_View_Helper_Dijit Class Reference

Public Member Functions

 setView (Zend_View_Interface $view)
 Set view.
 
 getRootNode ()
 Get root node type.
 
 setRootNode ($value)
 Set root node type.
 
 _createFormElement ($id, $value, array $params, array $attribs, $dijit=null)
 Create HTML representation of a dijit form element.
 
- Public Member Functions inherited from Zend_View_Helper_HtmlElement
 getClosingBracket ()
 Get the tag closing bracket.
 
- Public Member Functions inherited from Zend_View_Helper_Abstract
 setView (Zend_View_Interface $view)
 Set the View object.
 
 direct ()
 Strategy pattern: currently unutilized.
 

Public Attributes

 $dojo
 
- Public Attributes inherited from Zend_View_Helper_HtmlElement
const EOL = "\n"
 EOL character.
 
- Public Attributes inherited from Zend_View_Helper_Abstract
 $view = null
 

Protected Member Functions

 _useDeclarative ()
 Whether or not to use declarative dijit creation.
 
 _useProgrammatic ()
 Whether or not to use programmatic dijit creation.
 
 _useProgrammaticNoScript ()
 Whether or not to use programmatic dijit creation w/o script creation.
 
 _createLayoutContainer ($id, $content, array $params, array $attribs, $dijit=null)
 Create a layout container.
 
 _prepareDijit (array $attribs, array $params, $type, $dijit=null)
 Merge attributes and parameters.
 
 _createDijit ($dijit, $id, array $params)
 Create a dijit programmatically.
 
 _castBoolToString (&$item, $key)
 Cast a boolean to a string value.
 
 _renderHiddenElement ($id, $value)
 Render a hidden element to hold a value.
 
 _createGetParentFormFunction ()
 Create JS function for retrieving parent form.
 
- Protected Member Functions inherited from Zend_View_Helper_HtmlElement
 _isXhtml ()
 Is doctype XHTML?
 
 _isHtml5 ()
 Is doctype HTML5?
 
 _isStrictDoctype ()
 Is doctype strict?
 
 _htmlAttribs ($attribs)
 Converts an associative array to a string of tag attributes.
 
 _normalizeId ($value)
 Normalize an ID.
 

Protected Attributes

 $_dijit
 
 $_elementType
 
 $_jsonParams = array('constraints')
 
 $_module
 
 $_rootNode = 'div'
 
- Protected Attributes inherited from Zend_View_Helper_HtmlElement
 $_closingBracket = null
 

Member Function Documentation

_castBoolToString ( $item,
  $key 
)
protected

Cast a boolean to a string value.

Parameters
mixed$item
string$key
Returns
void
_createDijit (   $dijit,
  $id,
array  $params 
)
protected

Create a dijit programmatically.

Parameters
string$dijit
string$id
array$params
Returns
void
_createFormElement (   $id,
  $value,
array  $params,
array  $attribs,
  $dijit = null 
)

Create HTML representation of a dijit form element.

Parameters
string$id
string$value
array$params
array$attribs
string | null$dijit
Returns
string
_createGetParentFormFunction ( )
protected

Create JS function for retrieving parent form.

Returns
void
_createLayoutContainer (   $id,
  $content,
array  $params,
array  $attribs,
  $dijit = null 
)
protected

Create a layout container.

Parameters
int$id
string$content
array$params
array$attribs
string | null$dijit
Returns
string
_prepareDijit ( array  $attribs,
array  $params,
  $type,
  $dijit = null 
)
protected

Merge attributes and parameters.

Also sets up requires

Parameters
array$attribs
array$params
string$type
string$dijitDijit type to use (otherwise, pull from $_dijit)
Returns
array
_renderHiddenElement (   $id,
  $value 
)
protected

Render a hidden element to hold a value.

Parameters
string$id
string | int | float$value
Returns
string
_useDeclarative ( )
protected

Whether or not to use declarative dijit creation.

Returns
bool
_useProgrammatic ( )
protected

Whether or not to use programmatic dijit creation.

Returns
bool
_useProgrammaticNoScript ( )
protected

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

Returns
bool
getRootNode ( )

Get root node type.

Returns
string
setRootNode (   $value)

Set root node type.

Parameters
string$value
Returns
Zend_Dojo_View_Helper_Dijit
setView ( Zend_View_Interface  $view)

Set view.

Set view and enable dojo

Parameters
Zend_View_Interface$view
Returns
Zend_Dojo_View_Helper_Dijit

Implements Zend_View_Helper_Interface.

Member Data Documentation

$_dijit
protected
$_elementType
protected
$_jsonParams = array('constraints')
protected
$_module
protected
$_rootNode = 'div'
protected
$dojo