Class Zend_View_Helper_FormSelect

Description

Helper to generate "select" list of options

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

Located in /Zend/View/Helper/FormSelect.php (line 38)

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)
Methods
formSelect (line 63)

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 147)

Builds the actual <option> tag

  • return: Option Tag XHTML
  • access: protected
string _build (string $value, string $label, array $selected)
  • string $value: Options Value
  • string $label: Options Label
  • array $selected: The option value(s) to mark as 'selected'

Inherited Methods

Inherited From Zend_View_Helper_FormElement

 Zend_View_Helper_FormElement::_getInfo()
 Zend_View_Helper_FormElement::_hidden()
 Zend_View_Helper_FormElement::_htmlAttribs()

Documentation generated on Thu, 18 Jan 2007 09:54:19 -0800 by phpDocumentor 1.3.1