projects
/
timetracker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some renaming.
[timetracker.git]
/
WEB-INF
/
lib
/
form
/
FormElement.class.php
diff --git
a/WEB-INF/lib/form/FormElement.class.php
b/WEB-INF/lib/form/FormElement.class.php
index
7bd28ab
..
384dbeb
100644
(file)
--- a/
WEB-INF/lib/form/FormElement.class.php
+++ b/
WEB-INF/lib/form/FormElement.class.php
@@
-33,14
+33,13
@@
class FormElement {
var $form_name = ''; // Form name the control is in.
var $value = ''; // Value of the control.
var $size = ''; // Control size.
var $form_name = ''; // Form name the control is in.
var $value = ''; // Value of the control.
var $size = ''; // Control size.
- var $max_length = ''; // Max leng
ht
of text in control.
+ var $max_length = ''; // Max leng
th
of text in control.
var $on_change = ''; // What happens when value of control changes.
var $on_change = ''; // What happens when value of control changes.
+ var $on_click = ''; // What happens when the control is clicked.
+ var $label = ''; // Optional label for control.
+ var $style = ''; // Control style.
+
// TODO: refactoring ongoing down from here.
// TODO: refactoring ongoing down from here.
- var $mOnClick = "";
- var $mOnKeyPress = "";
- var $mOnFocus = "";
- var $mLabel = "";
- var $mStyle = "";
var $mRenderable = true;
var $mEnabled = true;
var $cClassName = "FormElement";
var $mRenderable = true;
var $mEnabled = true;
var $cClassName = "FormElement";
@@
-69,14
+68,14
@@
class FormElement {
function setSize($value) { $this->size = $value; }
function getSize() { return $this->size; }
function setSize($value) { $this->size = $value; }
function getSize() { return $this->size; }
- function setLabel($label)
{ $this->mL
abel = $label; }
- function getLabel() { return $this->
mL
abel; }
+ function setLabel($label)
{ $this->l
abel = $label; }
+ function getLabel() { return $this->
l
abel; }
function setMaxLength($value) { $this->max_length = $value; }
function getMaxLength() { return $this->max_length; }
function setMaxLength($value) { $this->max_length = $value; }
function getMaxLength() { return $this->max_length; }
- function setStyle($value)
{ $this->mS
tyle = $value; }
- function getStyle() { return $this->
mS
tyle; }
+ function setStyle($value)
{ $this->s
tyle = $value; }
+ function getStyle() { return $this->
s
tyle; }
function setRenderable($flag) { $this->mRenderable = $flag; }
function isRenderable() { return $this->mRenderable; }
function setRenderable($flag) { $this->mRenderable = $flag; }
function isRenderable() { return $this->mRenderable; }
@@
-85,7
+84,7
@@
class FormElement {
function isEnable() { return $this->mEnabled; }
function setOnChange($str) { $this->on_change = $str; }
function isEnable() { return $this->mEnabled; }
function setOnChange($str) { $this->on_change = $str; }
- function setOnClick($str)
{ $this->mOnC
lick = $str; }
+ function setOnClick($str)
{ $this->on_c
lick = $str; }
function setLocalization($i18n) {
$this->mI18n = $i18n;
function setLocalization($i18n) {
$this->mI18n = $i18n;
@@
-94,9
+93,9
@@
class FormElement {
function toStringControl() {
return "";
}
function toStringControl() {
return "";
}
-
+
function toStringLabel() {
function toStringLabel() {
- return "<label for=\"" . $this->id . "\">" . $this->
mL
abel . "</label>";
+ return "<label for=\"" . $this->id . "\">" . $this->
l
abel . "</label>";
}
function toArray() {
}
function toArray() {