projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some more refactoring in Form classes.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
Submit.class.php
diff --git
a/WEB-INF/lib/form/Submit.class.php
b/WEB-INF/lib/form/Submit.class.php
index
236fdb4
..
91123c5
100644
(file)
--- a/
WEB-INF/lib/form/Submit.class.php
+++ b/
WEB-INF/lib/form/Submit.class.php
@@
-29,22
+29,22
@@
import('form.FormElement');
class Submit extends FormElement {
import('form.FormElement');
class Submit extends FormElement {
- var $cClassName = "Submit";
- function __construct($name,$value="")
- {
- $this->name = $name;
- $this->value = $value;
- }
+ function __construct($name, $value = '')
+ {
+ $this->class = 'Submit';
+ $this->name = $name;
+ $this->value = $value;
+ }
-
function toStringContro
l() {
+
function getHtm
l() {
if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input";
$html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
if ($this->id=="") $this->id = $this->name;
$html = "\n\t<input";
$html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
- if (!$this->isEnable()) {
+ if (!$this->isEnable
d
()) {
$html .= " disabled=\"true\"";
}
$html .= " disabled=\"true\"";
}