Class Zend_View_Helper_FormSelect

Description

Helper to generate "select" list of options

  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /View/Helper/FormSelect.php (line 39)

Zend_View_Helper_Abstract
   |
   --Zend_View_Helper_HtmlElement
      |
      --Zend_View_Helper_FormElement
         |
         --Zend_View_Helper_FormSelect
Method Summary
 string formSelect (string|array $name, [mixed $value = null], [array|string $attribs = null], [array $options = null], [string $listsep = "<br />\n"])
 string _build (string $value, string $label, array $selected, array|bool $disable)
Variables
Methods
formSelect (line 64)

Generates 'select' list of options.

  • return: The select tag and options XHTML.
  • access: public
string formSelect (string|array $name, [mixed $value = null], [array|string $attribs = null], [array $options = null], [string $listsep = "<br />\n"])
  • string|array $name: 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.
  • mixed $value: The option value to mark as 'selected'; if an array, will mark all values in the array as 'selected' (used for multiple-select elements).
  • array|string $attribs: Attributes added to the 'select' tag.
  • array $options: An array of key-value pairs where the array key is the radio value, and the array value is the radio text.
  • string $listsep: When disabled, use this list separator string between list values.
_build (line 153)

Builds the actual <option> tag

  • return: Option Tag XHTML
  • access: protected
string _build (string $value, string $label, array $selected, array|bool $disable)
  • string $value: Options Value
  • string $label: Options Label
  • array $selected: The option value(s) to mark as 'selected'
  • array|bool $disable: Whether the select is disabled, or individual options are

Inherited Methods

Inherited From Zend_View_Helper_FormElement

 Zend_View_Helper_FormElement::getTranslator()
 Zend_View_Helper_FormElement::setTranslator()
 Zend_View_Helper_FormElement::_getInfo()
 Zend_View_Helper_FormElement::_hidden()

Inherited From Zend_View_Helper_HtmlElement

 Zend_View_Helper_HtmlElement::getClosingBracket()
 Zend_View_Helper_HtmlElement::_htmlAttribs()
 Zend_View_Helper_HtmlElement::_isXhtml()
 Zend_View_Helper_HtmlElement::_normalizeId()

Inherited From Zend_View_Helper_Abstract

 Zend_View_Helper_Abstract::direct()
 Zend_View_Helper_Abstract::setView()
Class Constants

Documentation generated on Mon, 21 Jun 2010 15:24:51 -0400 by phpDocumentor 1.4.3