API Documentation

View/Helper/FormElement.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
version
$Id: FormElement.php 22285 2010-05-25 14:22:11Z matthew $
Classes
Zend_View_Helper_FormElement

Description

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.

Zend_View_Helper_FormElement

Extends from
Zend_View_Helper_HtmlElement
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
Properties
$_translator
Methods
getTranslator
setTranslator
_getInfo
_hidden

Description

Base helper for form elements. Extend this, don't use it on its own.

Properties

$_translator

Zend_Translate $_translator = ''

Details

$_translator
Zend_Translate
visibility
protected
default
final
false
static
false

Methods

_getInfo

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

Converts parameter arguments to an element info array.

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.

Arguments
$name
$value
$attribs
$options
$listsep
Output
array
An element info array with keys for name, value, attribs, options, listsep, disable, and escape.
Details
visibility
protected
final
false
static
false
access
protected

_hidden

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

Creates a hidden element.

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

Arguments
$name
$name
The element name.
$value
$value
The element value.
$attribs
$attribs
Attributes for the element.
Output
string
A hidden element.
Details
visibility
protected
final
false
static
false
access
protected

getTranslator

getTranslator( ) : Zend_Translate

Get translator

Details
visibility
public
final
false
static
false

setTranslator

setTranslator( $translator|null $translator = null ) : Zend_View_Helper_FormElement

Set translator

Arguments
$translator
$translatornull
Zend_Translate
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.