Go to the documentation of this file.00001 <?php
00010 class form_numeric extends form_abstract {
00011
00012 public function setValue($value, $refill=false) {
00013 return parent::setValue(str_replace(',', '.', $value));
00014 }
00015
00016 public function toHtml() {
00017 if ($this->cfg->mode == 'view')
00018 return $this->getValue();
00019 return utils::htmlTag($this->htmlTagName,
00020 array_merge($this->html, array(
00021 'name'=>$this->name,
00022 'id'=>$this->id,
00023 'value'=>$this->getRawValue(),
00024 )));
00025 }
00026
00027 public function toXul() {
00028 return utils::htmlTag($this->xulTagName,
00029 array_merge($this->xul, array(
00030 'id'=>$this->id,
00031 'min'=>$this->min,
00032 'min'=>$this->max,
00033 'increment'=>$this->step,
00034 'value'=>$this->getRawValue(),
00035 )));
00036 }
00037
00038 }