1 | <?php |
||
8 | class SettingArray extends Setting { |
||
9 | |||
10 | /** |
||
11 | * Create an array from a string |
||
12 | * |
||
13 | * @param string $string |
||
14 | * @return array |
||
15 | */ |
||
16 | protected function fromString($string) { |
||
23 | |||
24 | /** |
||
25 | * Create a string from an array |
||
26 | * |
||
27 | * @param array $array |
||
28 | * @return string |
||
29 | */ |
||
30 | protected function fromArray($array) { |
||
33 | |||
34 | /** |
||
35 | * update setting with user provided value $input |
||
36 | * if value fails error check, save it |
||
37 | * |
||
38 | * @param string $input |
||
39 | * @return bool true if changed, false otherwise (incl. on error) |
||
40 | */ |
||
41 | public function update($input) { |
||
61 | |||
62 | /** |
||
63 | * Escaping |
||
64 | * |
||
65 | * @param string $string |
||
66 | * @return string |
||
67 | */ |
||
68 | protected function escape($string) { |
||
72 | |||
73 | /** @inheritdoc */ |
||
74 | public function out($var, $fmt = 'php') { |
||
88 | |||
89 | /** @inheritdoc */ |
||
90 | public function html(\admin_plugin_config $plugin, $echo = false) { |
||
112 | } |
||
113 |