1 | <?php |
||
13 | class Multiselect_Field extends Predefined_Options_Field { |
||
14 | /** |
||
15 | * Default field value |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | protected $default_value = array(); |
||
20 | |||
21 | /** |
||
22 | * Value delimiter |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $value_delimiter = '|'; |
||
27 | |||
28 | /** |
||
29 | * Create a field from a certain type with the specified label. |
||
30 | * |
||
31 | * @param string $type Field type |
||
32 | * @param string $name Field name |
||
33 | * @param string $label Field label |
||
34 | */ |
||
35 | public function __construct( $type, $name, $label ) { |
||
39 | |||
40 | /** |
||
41 | * {@inheritDoc} |
||
42 | */ |
||
43 | public function set_value_from_input( $input ) { |
||
60 | |||
61 | /** |
||
62 | * {@inheritDoc} |
||
63 | */ |
||
64 | public function to_json( $load ) { |
||
87 | |||
88 | /** |
||
89 | * {@inheritDoc} |
||
90 | */ |
||
91 | public function get_formatted_value() { |
||
96 | } |
||
97 |