Skip to content

Commit ac51891

Browse files
committed
Some renaming.
1 parent 04bc6bd commit ac51891

15 files changed

Lines changed: 19 additions & 19 deletions

WEB-INF/lib/form/ActionForm.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function setAttribute($name,$value) {
120120
$this->mValues[$name] = $value;
121121
if ($this->mForm) {
122122
if (isset($this->mForm->elements[$name])) {
123-
if ($this->mForm->elements[$name]->cClassName=="DateField") {
123+
if ($this->mForm->elements[$name]->class=="DateField") {
124124
$dt = new DateAndTime($user->date_format, $value);
125125
$value = $dt->toString(DB_DATEFORMAT);
126126
}
@@ -149,7 +149,7 @@ function setAttributes($value) {
149149
foreach ($this->mValues as $name=>$value) {
150150
if ($this->mForm) {
151151
if (isset($this->mForm->elements[$name])) {
152-
if ($this->mForm->elements[$name]->cClassName=="DateField") {
152+
if ($this->mForm->elements[$name]->class=="DateField") {
153153
$dt = new DateAndTime($user->date_format, $value);
154154
$value = $dt->toString(DB_DATEFORMAT);
155155
}

WEB-INF/lib/form/Calendar.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Calendar extends FormElement {
4545
var $controlName = "";
4646
var $highlight = "time"; // Determines what type of active days to highlight ("time" or "expenses").
4747
// var $mAllDays = true;
48-
var $cClassName = "Calendar";
48+
var $class = "Calendar";
4949

5050
function __construct($name) {
5151
$this->controlName = $name;

WEB-INF/lib/form/Checkbox.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
class Checkbox extends FormElement {
3232
var $mChecked = false;
3333
var $mOptions = null;
34-
var $cClassName = "Checkbox";
34+
var $class = 'Checkbox';
3535

3636
function __construct($name,$value="")
3737
{

WEB-INF/lib/form/CheckboxGroup.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class CheckboxGroup extends FormElement {
3333
var $mOptions = array();
3434
var $mLayout = "V";
3535
var $mGroupIn = 1;
36-
var $cClassName = "CheckboxGroup";
36+
var $class = 'CheckboxGroup';
3737
var $mDataKeys = array();
3838
var $mDataDeep = 1;
3939
var $lSelAll = "All";

WEB-INF/lib/form/Combobox.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Combobox extends FormElement {
4444
var $mCompareOn = "key"; // or "value"
4545
var $mDataDeep = 1;
4646
var $mDataKeys = array();
47-
var $cClassName = "Combobox";
47+
var $class = 'Combobox';
4848

4949
function __construct($name,$value="")
5050
{

WEB-INF/lib/form/DateField.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class DateField extends TextField {
3535
var $lToday = "Today";
3636

3737
var $mDateObj;
38-
var $cClassName = "DateField";
38+
var $class = 'DateField';
3939

4040
var $lCalendarButtons = array('today'=>'Today', 'close'=>'Close');
4141

WEB-INF/lib/form/FloatField.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FloatField extends TextField {
3232

3333
var $mDelimiter = '.';
3434
var $mFFormat;
35-
var $cClassName = 'FloatField';
35+
var $class = 'FloatField';
3636

3737
function __construct($name) {
3838
$this->name = $name;

WEB-INF/lib/form/FormElement.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ class FormElement {
3939
var $label = ''; // Optional label for control.
4040
var $style = ''; // Control style.
4141
var $enabled = true; // Whether the control is enabled.
42-
42+
var $class = 'FormElement'; // Class name for the element.
43+
4344
// TODO: refactoring ongoing down from here.
44-
var $cClassName = "FormElement";
4545
var $mI18n = null;
4646

4747
function __construct() {
4848
}
4949

50-
function getClass() { return $this->cClassName; }
50+
function getClass() { return $this->class; }
5151

5252
function setName($name) { $this->name = $name; }
5353
function getName() { return $this->name; }
5454

5555
function setFormName($name) { $this->form_name = $name; }
5656
function getFormName() { return $this->form_name; }
5757

58-
function setValue($value) { $this->value = $value;}
58+
function setValue($value) { $this->value = $value; }
5959
function getValue() { return $this->value; }
6060

6161
function setValueSafe($value) { $this->value = $value;}

WEB-INF/lib/form/Hidden.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import('form.FormElement');
3030

3131
class Hidden extends FormElement {
32-
var $cClassName = "Hidden";
32+
var $class = 'Hidden';
3333

3434
function __construct($name,$value="")
3535
{

WEB-INF/lib/form/Submit.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
import('form.FormElement');
3030

3131
class Submit extends FormElement {
32-
var $cClassName = "Submit";
32+
var $class = 'Submit';
3333

3434
function __construct($name,$value="")
3535
{

0 commit comments

Comments
 (0)