Ongoing refactoring - renamed a variable.
[timetracker.git] / WEB-INF / lib / form / FloatField.class.php
index 9cd38bf..b5f8d0d 100644 (file)
@@ -35,7 +35,7 @@ class FloatField extends TextField {
   var $cClassName = 'FloatField';
 
   function __construct($name) {
-    $this->mName = $name;
+    $this->name = $name;
   }
 
   function setLocalization($i18n) {
@@ -54,19 +54,19 @@ class FloatField extends TextField {
       $value = sprintf('%'.$this->mFFormat.'f', $value);
       $value = str_replace('.', $this->mDelimiter, $value);
     }
-    $this->mValue = $value;
+    $this->value = $value;
   }
 
   function setValueSafe($value)        {
     // '.' to ',' , apply delimiter
     if (strlen($value) > 0)
-      $this->mValue = str_replace('.', $this->mDelimiter, $value);
+      $this->value = str_replace('.', $this->mDelimiter, $value);
   }
 
   function getValueSafe() {
     // ',' to '.'
-    if (strlen($this->mValue) > 0)
-      return str_replace($this->mDelimiter, '.', $this->mValue);
+    if (strlen($this->value) > 0)
+      return str_replace($this->mDelimiter, '.', $this->value);
     return null;
   }
 }