1 | <?php |
||
10 | class NumberSanitizer extends FieldSanitizer |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * @var string[] Indicates characters that should be interpreted as radix point |
||
15 | * @link http://en.wikipedia.org/wiki/Radix_point |
||
16 | */ |
||
17 | private $radixes; |
||
18 | |||
19 | /** |
||
20 | * Indicates the precision factor |
||
21 | * @var float |
||
22 | */ |
||
23 | private $precision; |
||
24 | |||
25 | /** |
||
26 | * @param string[]|null $radixes Indicates characters that should be interpreted as decimal seperators. By default, points and commas will be accepted. |
||
27 | * @param float $precision Indicates the precision factor |
||
28 | */ |
||
29 | function __construct ($radixes = null, $precision = 0.01) |
||
34 | |||
35 | public function sanitize ($value) |
||
60 | |||
61 | public function isLive () |
||
65 | |||
66 | /** |
||
67 | * Returns a short human-readable slug/string describing the object |
||
68 | * @return string |
||
69 | */ |
||
70 | function describeObject () |
||
74 | |||
75 | public function getJsonData () |
||
82 | } |