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