Lines Matching defs:input
15 public function update($input)
20 $input = $input ?: [];
21 $input = $this->array2str($input);
24 if ($value == $input) return false;
26 if ($this->pattern && !preg_match($this->pattern, $input)) {
28 $this->input = $input;
32 $this->local = $input;
46 $value = $this->input;
57 $input = '';
69 $input .= '<div class="selection' . $class . '">' . "\n";
70 $input .= '<label for="config___' . $key . '_' . $choice . '">' . $prompt . "</label>\n";
71 $input .= '<input id="config___' . $key . '_' . $choice . '" name="config[' . $key .
73 $input .= "</div>\n";
92 $input .= '<div class="other' . $class . '">' . "\n";
93 $input .= '<label for="config___' . $key . '_other">' .
96 $input .= '<input id="config___' . $key . '_other" name="config[' . $key .
99 $input .= "</div>\n";
103 return [$label, $input];
136 * @param array $input
139 protected function array2str($input)
143 $other = trim($input['other']);
144 $other = empty($other) ? [] : explode(',', str_replace(' ', '', $input['other']));
145 unset($input['other']);
147 $array = array_unique(array_merge($input, $other));