Class: Textarea
Source Location: /myphp-1.9/myphp-1.9-form/html/component/Textarea.php
Class Textarea
Class Overview
|
Generates a html form elements, TEXTAREA
- Usage:
- $textarea = new Textarea($name,$text,$rows,$cols,$class,$title,$tabindex);
- print $textarea->getHtml();
- Or
- $textarea = new Textarea($name,$text,$rows,$cols,$class,$title,$tabindex);
- print $textarea->getStart();
- print "Display some text";
- print $textarea->getEnd();
- Or
- Textarea::display($name,$text,$rows,$cols,$class,$title,$tabindex);
- Or
- Textarea::start($name,$text,$rows,$cols,$class,$title,$tabindex);
- Raw::display('Display some text');
- Textarea::end($name,$text,$rows,$cols,$class,$title,$tabindex);
Located in /myphp-1.9/myphp-1.9-form/html/component/Textarea.php [line 39]
Object
|
--Html
|
--Textarea
|
Properties
|
Methods
|
Inherited Properties, Constants, and Methods
Method Summary
| void |
end() |
Display end html |
| String |
getEnd() |
Returns the complete html for the end of a textarea control |
| String |
getHtml() |
Returns the complete html for a textarea control |
| String |
getStart() |
Returns the complete html for the start of a textarea control |
| void |
start() |
Display start html |
Methods
Textarea Textarea(
String
$name, [String
$text = ''], [String
$rows = ''], [String
$cols = ''], [String
$class = ''], [mixed
$title = ''], [String
$tabindex = '']
)
|
|
Constructor
Parameters:
|
String |
$name: |
The name of the control |
|
String |
$text: |
The text value, if any |
|
String |
$rows: |
The number of rows |
|
String |
$cols: |
The number of columns |
|
String |
$class: |
The class name |
|
String |
$tabindex: |
The tabindex |
void display(
String
$name, [String
$text = ''], [String
$rows = ''], [String
$cols = ''], [String
$class = ''], [mixed
$title = ''], [String
$tabindex = '']
)
|
|
Display html
Parameters:
|
String |
$name: |
The name of the control |
|
String |
$text: |
The text value, if any |
|
String |
$rows: |
The number of rows |
|
String |
$cols: |
The number of columns |
|
String |
$class: |
The class name |
|
String |
$tabindex: |
The tabindex |
API Tags:
Redefinition of:
- Html::display()
- Display the html
Display end html
API Tags:
Returns the complete html for the end of a textarea control
API Tags:
| Return: | the complete html |
Returns the complete html for a textarea control
API Tags:
| Return: | the complete html |
Redefinition of:
- Html::getHtml()
- Get Html
Returns the complete html for the start of a textarea control
API Tags:
| Return: | the complete html |
void start(
String
$name, [String
$text = ''], [String
$rows = ''], [String
$cols = ''], [String
$class = ''], [mixed
$title = ''], [String
$tabindex = '']
)
|
|
Display start html
- Usage:
- Textarea::start($name,$text,$rows,$cols,$class,$title,$tabindex);
Parameters:
|
String |
$name: |
The name of the control |
|
String |
$text: |
The text value, if any |
|
String |
$rows: |
The number of rows |
|
String |
$cols: |
The number of columns |
|
String |
$class: |
The class name |
|
String |
$tabindex: |
The tabindex |
API Tags:
|
|