Helper to generate a "password" element

category Zend
package Zend_View
subpackage Helper
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_View_Helper_FormElement

 Methods

Strategy pattern: currently unutilized

direct() : void
Inherited
inherited_from \Zend_View_Helper_Interface::direct()

Generates a 'password' element.

formPassword(string|array $name, mixed $value = null, array $attribs = null) : string
access public

Parameters

$name

stringarray

If a string, the element name. If an array, all other parameters are ignored, and the array elements are extracted in place of added parameters.

$value

mixed

The element value.

$attribs

array

Attributes for the element tag.

Returns

stringThe element XHTML.

Get the tag closing bracket

getClosingBracket() : string
Inherited

Returns

string

Get translator

getTranslator() : \Zend_Translate_Adapter | null
Inherited

Returns

\Zend_Translate_Adapternull

Set translator

setTranslator(\Zend_Translate|\Zend_Translate_Adapter|null $translator = null) : \Zend_View_Helper_FormElement
Inherited

Parameters

$translator

\Zend_Translate\Zend_Translate_Adapternull

Returns

\Zend_View_Helper_FormElement

Set the View object

setView(\Zend_View_Interface $view) : \Zend_View_Helper_Abstract
Inherited
inherited_from \Zend_View_Helper_Interface::setView()

Parameters

$view

\Zend_View_Interface

Returns

\Zend_View_Helper_Abstract

Converts parameter arguments to an element info array.

_getInfo($name, $value = null, $attribs = null, $options = null, $listsep = null) : array
Inherited

E.g, formExample($name, $value, $attribs, $options, $listsep) is the same thing as formExample(array('name' => ...)).

Note that you cannot pass a 'disable' param; you need to pass it as an 'attribs' key.

access protected

Parameters

$name

$value

$attribs

$options

$listsep

Returns

arrayAn element info array with keys for name, value, attribs, options, listsep, disable, and escape.

Creates a hidden element.

_hidden(string $name, string $value = null, array $attribs = null) : string
Inherited

We have this as a common method because other elements often need hidden elements for their operation.

access protected

Parameters

$name

string

The element name.

$value

string

The element value.

$attribs

array

Attributes for the element.

Returns

stringA hidden element.

Converts an associative array to a string of tag attributes.

_htmlAttribs(array $attribs) : string
Inherited
access public

Parameters

$attribs

array

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

Returns

stringThe XHTML for the attributes.

Is doctype HTML5?

_isHtml5() : boolean
Inherited

Returns

boolean

Is doctype strict?

_isStrictDoctype() : boolean
Inherited

Returns

boolean

Is doctype XHTML?

_isXhtml() : boolean
Inherited

Returns

boolean

Normalize an ID

_normalizeId(string $value) : string
Inherited

Parameters

$value

string

Returns

string

 Properties

 

View object

$view : \Zend_View_Interface

Default

null
 

The tag closing bracket

$_closingBracket : string

Default

null
 

$_translator

$_translator : \Zend_Translate_Adapter | null

Default

 Constants

 

EOL character

EOL = "\n"