projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactoring - renaming things.
[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
2c65035
..
ba3d698
100644
(file)
--- a/
WEB-INF/lib/form/Submit.class.php
+++ b/
WEB-INF/lib/form/Submit.class.php
@@
-31,28
+31,28
@@
import('form.FormElement');
class Submit extends FormElement {
var $cClassName = "Submit";
class Submit extends FormElement {
var $cClassName = "Submit";
- function
Submi
t($name,$value="")
+ function
__construc
t($name,$value="")
{
{
- $this->
mName
= $name;
- $this->
mValue
= $value;
+ $this->
name
= $name;
+ $this->
value
= $value;
}
function toStringControl() {
if (!$this->isRenderable()) return "";
}
function toStringControl() {
if (!$this->isRenderable()) return "";
- if ($this->
mId=="") $this->mId = $this->mN
ame;
+ if ($this->
id=="") $this->id = $this->n
ame;
$html = "\n\t<input";
$html = "\n\t<input";
- $html .= " type=\"submit\" name=\"$this->
mName\" id=\"$this->mI
d\"";
+ $html .= " type=\"submit\" name=\"$this->
name\" id=\"$this->i
d\"";
if (!$this->isEnable()) {
$html .= " disabled=\"true\"";
}
if (!$this->isEnable()) {
$html .= " disabled=\"true\"";
}
- $html .= " value=\"$this->
mV
alue\"";
+ $html .= " value=\"$this->
v
alue\"";
- if ($this->
mOnC
lick) {
-
$html .= " onclick=\"".$this->mOnC
lick."\"";
+ if ($this->
on_c
lick) {
+
$html .= " onclick=\"".$this->on_c
lick."\"";
}
$html .= ">";
}
$html .= ">";