Class: Select
Source Location: /myphp-1.9/myphp-1.9-form/html/component/Select.php
Class Select
Class Overview
|
Generates a SELECT form element
- Usage:
- $select = new Select($name,$class,$onchange,$multiple,$size,$onclick,$title,$tabindex);
- $select->add(new Option('$key,$value));
- : :
- print $select->getHtml();
- OR
- Select::start($name,$class,$onchange,$multiple,$size,$onclick,$title,$tabindex);
- Option::display($key,$value);
- : :
- Select::end();
Located in /myphp-1.9/myphp-1.9-form/html/component/Select.php [line 36]
Object
|
--Html
|
--Select
|
Properties
|
Methods
|
Inherited Properties, Constants, and Methods
Method Summary
| void |
end() |
Display end html |
| void |
start() |
Display start html |
Methods
Select Select(
String
$name, [String
$class = ''], [String
$onchange = ''], [String
$multiple = ''], [String
$size = ''], [String
$onclick = ''], [String
$title = ''], [String
$tabindex = '']
)
|
|
Constructor
Parameters:
|
String |
$name: |
The name of the control |
|
String |
$class: |
The class name |
|
String |
$onchange: |
On Change Event name i.e. 'EMNE' |
|
String |
$multiple: |
The multiple attribute |
|
String |
$size: |
The size attribute |
|
String |
$onclick: |
On Click Event name i.e. 'EMNE' |
|
String |
$title: |
The tooltip |
|
String |
$tabindex: |
The tabindex |
void display(
String
$name, [String
$class = ''], [String
$onchange = ''], [String
$multiple = ''], [String
$size = ''], [String
$onclick = ''], [String
$title = ''], [String
$tabindex = '']
)
|
|
Display html
- Usage:
- Select::display($name,$class,$onchange,$multiple,$size,$onclick,$title,$tabindex);
Parameters:
|
String |
$name: |
The name of the control |
|
String |
$class: |
The class name |
|
String |
$onchange: |
On Change Event name i.e. 'EMNE' |
|
String |
$multiple: |
The multiple attribute |
|
String |
$size: |
The size attribute |
|
String |
$onclick: |
On Click Event name i.e. 'EMNE' |
|
String |
$title: |
The tooltip |
|
String |
$tabindex: |
The tabindex |
API Tags:
Redefinition of:
- Html::display()
- Display the html
Display end html
API Tags:
void start(
String
$name, [String
$class = ''], [String
$onchange = ''], [String
$multiple = ''], [String
$size = ''], [String
$onclick = ''], [String
$title = ''], [String
$tabindex = '']
)
|
|
Display start html
- Usage:
- Select::start($name,$class,$onchange,$multiple,$size,$onclick,$title,$tabindex);
Parameters:
|
String |
$name: |
The name of the control |
|
String |
$class: |
The class name |
|
String |
$onchange: |
On Change Event name i.e. 'EMNE' |
|
String |
$multiple: |
The multiple attribute |
|
String |
$size: |
The size attribute |
|
String |
$onclick: |
On Click Event name i.e. 'EMNE' |
|
String |
$title: |
The tooltip |
|
String |
$tabindex: |
The tabindex |
API Tags:
|
|