API Documentation

View/Helper/FormSelect.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: FormSelect.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_View_Helper_FormSelect

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_FormSelect

Extends from
Zend_View_Helper_FormElement
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
Methods
formSelect
_build

Description

Helper to generate "select" list of options

Methods

_build

_build( string $value, string $label, array $selected, array|bool $disable ) : string

Builds the actual <option> tag

Arguments
$value
string
Options Value
$label
string
Options Label
$selected
array
The option value(s) to mark as &#039;selected&#039;
$disable
arraybool
Whether the select is disabled, or individual options are
Output
string
Option Tag XHTML
Details
visibility
protected
final
false
static
false

formSelect

formSelect( string|array $name, mixed $value = null, array|string $attribs = null, array $options = null, string $listsep =
\n )
: string

Generates 'select' list of options.

Arguments
$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 option value to mark as &#039;selected&#039;; if an array, will mark all values in the array as &#039;selected&#039; (used for multiple-select elements).
$attribs
arraystring
Attributes added to the &#039;select&#039; tag.
$options
array
An array of key-value pairs where the array key is the radio value, and the array value is the radio text.
$listsep
string
When disabled, use this list separator string between list values.
Output
string
The select tag and options XHTML.
Details
visibility
public
final
false
static
false
access
public
Documentation was generated by DocBlox.