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.
Dojo dijit base class

array
$_jsonParams= 'array('constraints')'
Parameters that should be JSON encoded
array('constraints')
Details
string
$_rootNode= ''div''
Root node element type for layout elements
'div'
Details
_castBoolToString(
mixed $item, string $key
)
:
void
Cast a boolean to a string value
Name | Type | Description |
---|---|---|
$item | mixed | |
$key | string |

_createDijit(
string $dijit, string $id, array $params
)
:
void
Create 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
)
:
string
Create 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
)
:
string
Create a layout container
Name | Type | Description |
---|---|---|
$id | int | |
$content | string | |
$params | array | |
$attribs | array | |
$dijit | string|null |
Type | Description |
---|---|
string |

_prepareDijit(
array $attribs, array $params, string $type, string $dijit
=
null
)
:
array
Merge 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
)
:
string
Render a hidden element to hold a value
Name | Type | Description |
---|---|---|
$id | string | |
$value | string|int|float |
Type | Description |
---|---|
string |

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

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

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

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

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