Dojo/View/Helper/PasswordTextBox.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: PasswordTextBox.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Dojo_View_Helper_PasswordTextBox

Package: Zend\Dojo\View
Dojo ValidationTextBox dijit tied to password input
Parent(s)
\Zend_Dojo_View_Helper_ValidationTextBox < \Zend_Dojo_View_Helper_Dijit < \Zend_View_Helper_HtmlElement < \Zend_View_Helper_Abstract
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Uses
\global\Zend_Dojo_View_Helper_Dijit  

Constants

Properties

>VPropertyprotectedstring $_dijit = 'dijit.form.ValidationTextBox'
inherited
Dijit being used
Inherited from: \Zend_Dojo_View_Helper_ValidationTextBox::$$_dijit
Default value'dijit.form.ValidationTextBox'Details
Type
string
Inherited_from
\Zend_Dojo_View_Helper_ValidationTextBox::$$_dijit  
>VPropertyprotectedstring $_elementType = 'password'
HTML element type
Default value'password'Details
Type
string
>VPropertyprotectedarray $_jsonParams = array('constraints')
Default valuearray('constraints')Details
Type
array
Inherited_from
\Zend_Dojo_View_Helper_Dijit::$$_jsonParams  
Inherited_from
\Zend_Dojo_View_Helper_ValidationTextBox::$$_jsonParams  
>VPropertyprotectedstring $_module = 'dijit.form.ValidationTextBox'
inherited
Dojo module to use
Inherited from: \Zend_Dojo_View_Helper_ValidationTextBox::$$_module
Default value'dijit.form.ValidationTextBox'Details
Type
string
Inherited_from
\Zend_Dojo_View_Helper_ValidationTextBox::$$_module  
>VPropertyprotectedstring $_rootNode = 'div'
inherited
Root node element type for layout elements
Inherited from: \Zend_Dojo_View_Helper_Dijit::$$_rootNode\Zend_Dojo_View_Helper_ValidationTextBox::$$_rootNode
Default value'div'Details
Type
string
Inherited_from
\Zend_Dojo_View_Helper_Dijit::$$_rootNode  
Inherited_from
\Zend_Dojo_View_Helper_ValidationTextBox::$$_rootNode  

Methods

methodprotected_castBoolToString(mixed $item, string $key) : void
Parameters
NameTypeDescription
$itemmixed
$keystring
methodprotected_createDijit(string $dijit, string $id, array $params) : void
Parameters
NameTypeDescription
$dijitstring
$idstring
$paramsarray
methodpublic_createFormElement(string $id, string $value, array $params, array $attribs, string | null $dijit = null) : string
inherited

Create HTML representation of a dijit form element

Inherited from: \Zend_Dojo_View_Helper_Dijit::_createFormElement()\Zend_Dojo_View_Helper_ValidationTextBox::_createFormElement()
Parameters
NameTypeDescription
$idstring
$valuestring
$paramsarray
$attribsarray
$dijitstring | null
Returns
TypeDescription
string
methodprotected_createGetParentFormFunction() : void
methodprotected_createLayoutContainer(int $id, string $content, array $params, array $attribs, string | null $dijit = null) : string
Parameters
NameTypeDescription
$idint
$contentstring
$paramsarray
$attribsarray
$dijitstring | null
Returns
TypeDescription
string
methodprotected_htmlAttribs(array $attribs) : string
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_isXhtml() : boolean
Returns
TypeDescription
boolean
methodprotected_normalizeId(string $value) : string
Parameters
NameTypeDescription
$valuestring
Returns
TypeDescription
string
methodprotected_prepareDijit(array $attribs, array $params, string $type, string $dijit = null) : array

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
Parameters
NameTypeDescription
$idstring
$valuestring | int | float
Returns
TypeDescription
string
methodprotected_useDeclarative() : bool
inherited

Whether or not to use declarative dijit creation

Inherited from: \Zend_Dojo_View_Helper_Dijit::_useDeclarative()\Zend_Dojo_View_Helper_ValidationTextBox::_useDeclarative()
Returns
TypeDescription
bool
methodprotected_useProgrammatic() : bool
inherited

Whether or not to use programmatic dijit creation

Inherited from: \Zend_Dojo_View_Helper_Dijit::_useProgrammatic()\Zend_Dojo_View_Helper_ValidationTextBox::_useProgrammatic()
Returns
TypeDescription
bool
methodprotected_useProgrammaticNoScript() : bool
inherited

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

Inherited from: \Zend_Dojo_View_Helper_Dijit::_useProgrammaticNoScript()\Zend_Dojo_View_Helper_ValidationTextBox::_useProgrammaticNoScript()
Returns
TypeDescription
bool
methodpublicgetClosingBracket() : string
Returns
TypeDescription
string
methodpublicgetRootNode() : string
Returns
TypeDescription
string
methodpublicpasswordTextBox(string $id, mixed $value = null, array $params = array(), array $attribs = array()) : string

dijit.form.ValidationTextBox tied to password input

Parameters
NameTypeDescription
$idstring
$valuemixed
$paramsarray

Parameters to use for dijit creation

$attribsarray

HTML attributes

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

Set view and enable dojo

Parameters
NameTypeDescription
$view\Zend_View_Interface
Returns
TypeDescription
\Zend_Dojo_View_Helper_Dijit
methodpublicvalidationTextBox(int $id, mixed $value = null, array $params = array(), array $attribs = array()) : string
inherited

dijit.form.ValidationTextBox

Inherited from: \Zend_Dojo_View_Helper_ValidationTextBox::validationTextBox()
Parameters
NameTypeDescription
$idint
$valuemixed
$paramsarray

Parameters to use for dijit creation

$attribsarray

HTML attributes

Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.0.0a12.