| Total Complexity | 6 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | class QuantityField extends NumericField |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Construct this field (we override the default to set a default value) |
||
| 16 | * |
||
| 17 | * @param [type] $name |
||
| 18 | * @param [type] $title |
||
| 19 | * @param string $value |
||
| 20 | * @param [type] $maxLength |
||
| 21 | * @param [type] $form |
||
| 22 | */ |
||
|
|
|||
| 23 | public function __construct($name, $title = null, $value = 1, $maxLength = null, $form = null) |
||
| 24 | { |
||
| 25 | parent::__construct($name, $title, $value); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function Type() |
||
| 29 | { |
||
| 30 | return 'quantity numeric text'; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * PHP Validation |
||
| 35 | * |
||
| 36 | * @return boolean |
||
| 37 | * @throws Exception |
||
| 38 | **/ |
||
| 39 | public function validate($validator) |
||
| 57 | } |
||
| 58 | |||
| 59 | public function dataValue() |
||
| 65 | } |
||
| 66 | } |
||
| 67 |