constructor HTML_QuickForm_select()

constructor HTML_QuickForm_select() – Class constructor

Synopsis

require_once 'HTML/QuickForm/select.php';

void constructor HTML_QuickForm_select::HTML_QuickForm_select ( string $elementName = null , mixed $elementLabel = null , mixed $options = null , mixed $attributes = null )

Описание

This package is not documented yet.

Parameter

string $elementName

Select name attribute

mixed $elementLabel

Label(s) for the select

mixed $options

Data to be used to populate options

mixed $attributes

Either a typical HTML attribute string or an associative array

Throws

throws no exceptions thrown

See

see load().

Замечание

since 1.0

This function can not be called statically.

Пример

<?php
$select 
$quickform->createElement(
    
'select''selectname',
    
'Label for select',
    array(
'fr' => 'French''de' => 'German''en_GB' => 'British English'),
    array(
'id' => 'selectname''onchange' => '...'));
);
?>
    Поддержать сайт на родительском проекте КГБ