nyroFwk  0.2
numeric.class.php
Go to the documentation of this file.
1 <?php
10 class form_numeric extends form_abstract {
11 
12  public function setValue($value, $refill=false) {
13  return parent::setValue(str_replace(',', '.', $value));
14  }
15 
16  public function toHtml() {
17  if ($this->cfg->mode == 'view')
18  return $this->getValue();
19  return utils::htmlTag($this->htmlTagName,
20  array_merge($this->html, array(
21  'name'=>$this->name,
22  'id'=>$this->id,
23  'value'=>$this->getRawValue(),
24  )));
25  }
26 
27  public function toXul() {
28  return utils::htmlTag($this->xulTagName,
29  array_merge($this->xul, array(
30  'id'=>$this->id,
31  'min'=>$this->min,
32  'min'=>$this->max,
33  'increment'=>$this->step,
34  'value'=>$this->getRawValue(),
35  )));
36  }
37 
38 }
setValue($value, $refill=false)
static htmlTag($tag, array $attributes, $content=null)
Definition: utils.class.php:46
Generated on Sun Oct 15 2017 22:25:20 for nyroFwk by doxygen 1.8.13