1 | <?php |
||
8 | class Number_Field extends Field { |
||
9 | |||
10 | protected $default_min = 1; |
||
11 | protected $default_max = 2147483647; |
||
12 | protected $default_step = 1; |
||
13 | |||
14 | protected $min = 1; |
||
15 | protected $max = 2147483647; |
||
16 | protected $step = 1; |
||
17 | |||
18 | /** |
||
19 | * Underscore template of this field. |
||
20 | */ |
||
21 | function template() { |
||
26 | |||
27 | function to_json($load) { |
||
38 | |||
39 | function save() { |
||
62 | |||
63 | function set_max($max) { |
||
67 | |||
68 | function set_min($min) { |
||
72 | |||
73 | function set_step($step) { |
||
77 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.