Class: Button
Source Location: /myphp-1.9/myphp-1.9-form/html/component/Button.php
Class Button
Class Overview
|
Generates an INPUT element for a form, as a Button
- <input type="button" name="$name" value="$value" class="$class"
- title="$title" tabindex="" />
- Usage:
- $button = new Button($name,$value,$class,$onclick,$title,$tabindex);
- print $button->getHtml();
- Or
- Button::display($name,$value,$class,$onclick,$title,$tabindex);
Located in /myphp-1.9/myphp-1.9-form/html/component/Button.php [line 32]
Object
|
--Html
|
--Input
|
--Button
|
Methods
|
Inherited Properties, Constants, and Methods
Methods
Button Button(
[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
- Usage:
- Button::display($name,$value,$class,$onclick,$title,$tabindex);
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
|
|