Class: TextField
Source Location: /myphp-1.9/myphp-1.9-form/html/component/TextField.php
Class TextField
Class Overview
|
Generates an INPUT element for a form
- <input type="text" name="$name" value="$value"
- class="$class" size="$size" maxlength="$maxlength" />
- Usage:
- $textfield = new TextField($name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);
- print $textfield->getHtml();
- Or
- TextField::display($name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);
Located in /myphp-1.9/myphp-1.9-form/html/component/TextField.php [line 32]
Object
|
--Html
|
--Input
|
--TextField
|
Methods
|
Direct descendents
| Zip |
Generates an INPUT element for a Zip form
|
Inherited Properties, Constants, and Methods
Methods
TextField TextField(
String
$name, [String
$value = ''], [String
$class = ''], [String
$size = ''], [String
$maxlength = ''], [String
$disabled = ''], [String
$readonly = ''], [String
$onclick = ''], [String
$title = ''], [String
$tabindex = '']
)
|
|
Constructor
Parameters:
|
String |
$name: |
The name |
|
String |
$value: |
The value, if any |
|
String |
$class: |
The class |
|
String |
$size: |
The size |
|
String |
$maxlength: |
The maxlength |
|
String |
$disabled: |
The disabled |
|
String |
$readonly: |
The readonly |
|
String |
$onclick: |
On click event for javascript |
|
String |
$title: |
The title |
|
String |
$tabindex: |
The tabindex |
void display(
[String
$name = ''], [String
$value = ''], [String
$class = ''], [String
$size = ''], [String
$maxlength = ''], [String
$disabled = ''], [String
$readonly = ''], [String
$onclick = ''], [String
$title = ''], [String
$tabindex = '']
)
|
|
Display html
- Usage:
- TextField::display($name,$value,$class,$size,$maxlength,$disabled,$readonly,$onclick,$title,$tabindex);
Parameters:
|
String |
$name: |
The name |
|
String |
$value: |
The value, if any |
|
String |
$class: |
The class |
|
String |
$size: |
The size |
|
String |
$maxlength: |
The maxlength |
|
String |
$disabled: |
The disabled |
|
String |
$readonly: |
The readonly |
|
String |
$onclick: |
On click event for javascript |
|
String |
$title: |
The title |
|
String |
$tabindex: |
The tabindex |
API Tags:
Redefinition of:
- Input::display()
- Display html
Redefined in descendants as:
|
|