1 | <?php |
||
8 | class SettingNumeric extends SettingString { |
||
9 | // This allows for many PHP syntax errors... |
||
10 | // var $_pattern = '/^[-+\/*0-9 ]*$/'; |
||
11 | // much more restrictive, but should eliminate syntax errors. |
||
12 | protected $pattern = '/^[-+]? *[0-9]+ *(?:[-+*] *[0-9]+ *)*$/'; |
||
13 | protected $min = null; |
||
14 | protected $max = null; |
||
15 | |||
16 | /** @inheritdoc */ |
||
17 | public function update($input) { |
||
32 | |||
33 | /** @inheritdoc */ |
||
34 | public function out($var, $fmt = 'php') { |
||
42 | } |
||
43 |