Ejemplo n.º 1
0
 /**
  * Define the field's range
  * @param $min Minimal value
  * @param $max Maximal value
  * @param $step Step value
  */
 public function setRange($min, $max, $step)
 {
     $this->min = $min;
     $this->max = $max;
     $this->step = $step;
     parent::setValue($min);
 }
Ejemplo n.º 2
0
 /**
  * Set the value
  */
 public function setValue($value)
 {
     parent::setValue((int) $value);
 }