X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2Fform%2FFloatField.class.php;h=c4e9d9ef7f894a588c6cca3e4d0a18ae16468a1a;hb=1a0a67742c8791fe059c455beccfad162996c34b;hp=9cd38bfd8779860d3eba052fcd09bf2a260ab84b;hpb=dd8defde4b1f44f56cf9ef3c3b6b435a70faaae9;p=timetracker.git diff --git a/WEB-INF/lib/form/FloatField.class.php b/WEB-INF/lib/form/FloatField.class.php index 9cd38bfd..c4e9d9ef 100644 --- a/WEB-INF/lib/form/FloatField.class.php +++ b/WEB-INF/lib/form/FloatField.class.php @@ -32,10 +32,10 @@ class FloatField extends TextField { var $mDelimiter = '.'; var $mFFormat; - var $cClassName = 'FloatField'; + var $class = '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; } }