1 | <?php |
||
15 | class Kirki_Field_Select extends Kirki_Field { |
||
16 | |||
17 | /** |
||
18 | * Use only on select controls. |
||
19 | * Defines if this is a multi-select or not. |
||
20 | * If value is > 1, then the maximum number of selectable options |
||
21 | * is the number defined here. |
||
22 | * |
||
23 | * @access protected |
||
24 | * @var integer |
||
25 | */ |
||
26 | protected $multiple = 1; |
||
27 | |||
28 | /** |
||
29 | * Sets the control type. |
||
30 | * |
||
31 | * @access protected |
||
32 | */ |
||
33 | protected function set_type() { |
||
38 | |||
39 | /** |
||
40 | * Sets the $multiple |
||
41 | * |
||
42 | * @access protected |
||
43 | */ |
||
44 | protected function set_multiple() { |
||
49 | |||
50 | /** |
||
51 | * Sets the $sanitize_callback |
||
52 | * |
||
53 | * @access protected |
||
54 | */ |
||
55 | protected function set_sanitize_callback() { |
||
65 | |||
66 | /** |
||
67 | * Sanitizes select control values. |
||
68 | * |
||
69 | * @since 2.2.8 |
||
70 | * @access public |
||
71 | * @param array $value The value. |
||
72 | * @return string|array |
||
73 | */ |
||
74 | public function sanitize( $value ) { |
||
90 | |||
91 | /** |
||
92 | * Sets the default value. |
||
93 | * |
||
94 | * @access protected |
||
95 | * @since 2.4.0 |
||
96 | */ |
||
97 | protected function set_default() { |
||
103 | } |
||
104 |