| 123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Forms\Fields;
- /**
- * Number Field controler
- *
- * @autor ThurData <info@thrudata.ch>
- */
- class Number extends BaseField
- {
- protected $id = 'number';
- protected $name = 'number';
- protected $maxValue = null;
- protected $minValue = null;
- public function __construct($minValue = null, $maxValue = null)
- {
- parent::__construct();
- $this->minValue = $minValue;
- $this->maxValue = $maxValue;
-
- $this->isIntNumberBetween($this->minValue, $this->maxValue);
- }
- public function getMinValue()
- {
- return $this->minValue;
- }
- public function getMaxValue()
- {
- return $this->maxValue;
- }
- }
|