Class: Input
Source Location: /myphp-1.9/myphp-1.9-form/html/component/Input.php
Class Input
Class Overview
|
Generates an INPUT element for a form
- <input type="$type" name="$name" value="$value" class="$class"
- size="$size" maxlength="$maxlength" disabled="disabled"
- readonly="readonly" onclick="$onclick" title="$title" tabindex="" />
- Usage:
- $input = new Input($type,$name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);
- print $input->getHtml();
- Or
- Input::display($type,$name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);
Located in /myphp-1.9/myphp-1.9-form/html/component/Input.php [line 35]
Object
|
--Html
|
--Input
|
Properties
|
Methods
|
Direct descendents
| Button |
Generates an INPUT element for a form, as a Button
|
| CancelButton |
Generates an INPUT element for a form, as a Cancel Button
|
| Checkbox |
Generates an INPUT element for a form, which is a Checkbox control
|
| Disabled |
Generates an INPUT element for a form, which is disabled
|
| Fileupload |
Generates an INPUT element for a form, which is File upload
|
| Hidden |
Generates an INPUT element for a form, which is Hidden
|
| ImageButton |
Generates an INPUT image element for a form, as a Submit Button
|
| Password |
Generates an INPUT element for a form, as a Password
|
| Radio |
Generates an INPUT element for a form, which is a Radio control
|
| Readonly |
Generates an INPUT element for a form, which is Readonly
|
| ResetButton |
Generates an INPUT element for a form, as a Reset Button
|
| SubmitButton |
Generates an INPUT element for a form, as a Submit Button
|
| TextField |
Generates an INPUT element for a form
|
Inherited Properties, Constants, and Methods
Method Summary
| Input |
Input() |
Constructor |
| String |
getHtml() |
Returns the complete html for an input control |
Methods
Input Input(
[String
$type = ''], [String
$name = ''], [String
$value = ''], [String
$class = ''], [String
$size = ''], [String
$maxlength = ''], [String
$disabled = ''], [String
$readonly = ''], [String
$onclick = ''], [String
$title = ''], [String
$tabindex = '']
)
|
|
Constructor
Parameters:
|
String |
$type: |
The type (text, radio, checkbox, file, button, hidden, submit, reset) |
|
String |
$name: |
The name |
|
String |
$value: |
The value, if any |
|
String |
$class: |
The class |
|
String |
$size: |
The size / or checked for radio/checkbox |
|
String |
$maxlength: |
The maxlength |
|
String |
$disabled: |
The disabled |
|
String |
$readonly: |
The readonly |
|
String |
$onclick: |
On click event for javascript |
|
String |
$title: |
The tooltip |
|
String |
$tabindex: |
The tabindex |
void display(
[String
$type = ''], [String
$name = ''], [String
$value = ''], [String
$class = ''], [String
$size = ''], [String
$maxlength = ''], [String
$disabled = ''], [String
$readonly = ''], [String
$onclick = ''], [String
$title = ''], [String
$tabindex = '']
)
|
|
Display html
- Usage:
- Input::display($type,$name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);
Parameters:
|
String |
$type: |
The type (text, radio, checkbox, file, button, hidden, submit, reset) |
|
String |
$name: |
The name |
|
String |
$value: |
The value, if any |
|
String |
$class: |
The class |
|
String |
$size: |
The size / or checked for radio/checkbox |
|
String |
$maxlength: |
The maxlength |
|
String |
$disabled: |
The disabled |
|
String |
$readonly: |
The readonly |
|
String |
$onclick: |
On click event for javascript |
|
String |
$title: |
The tooltip |
|
String |
$tabindex: |
The tabindex |
API Tags:
Redefinition of:
- Html::display()
- Display the html
Redefined in descendants as:
Returns the complete html for an input control
API Tags:
| Return: | the complete html |
Redefinition of:
- Html::getHtml()
- Get Html
|
|