API Documentation

Zend/View/Helper/FormSelect.php

Show: inherited
Table of Contents

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.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_View  
Subpackage
Helper  
Version
$Id: FormSelect.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_View_Helper_FormSelect

Package: Zend\View\Helper

Helper to generate "select" list of options

Parent(s)
\Zend_View_Helper_FormElement < \Zend_View_Helper_HtmlElement < \Zend_View_Helper_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

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

Builds the actual

Parameters
Name Type Description
$value string

Options Value

$label string

Options Label

$selected array

The option value(s) to mark as 'selected'

$disable array|bool

Whether the select is disabled, or individual options are

Returns
Type Description
string Option Tag XHTML
methodpublicformSelect( string|array $name, mixed $value = null, array|string $attribs = null, array $options = null, string $listsep = "
\n" )
: string

Generates 'select' list of options.

Parameters
Name Type Description
$name string|array

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 'selected'; if an array, will mark all values in the array as 'selected' (used for multiple-select elements).

$attribs array|string

Attributes added to the 'select' 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.

Returns
Type Description
string The select tag and options XHTML.
Details
Access
public  
Documentation was generated by DocBlox 0.15.1.