Lines Matching defs:value

15     /** @var mixed the default value of this setting */
17 /** @var mixed the local value of this setting */
19 /** @var mixed the protected value of this setting */
35 * @see initialize() to set the actual value of the setting
45 foreach ($params as $property => $value) {
47 $this->$property = $value;
57 * @see update() to set a new value
58 * @param mixed $default default setting value
59 * @param mixed $local local setting value
60 * @param mixed $protected protected setting value
70 * update changed setting with validated user provided value $input
71 * - if changed value fails validation check, save it to $this->input (to allow echoing later)
72 * - if changed value passes validation check, set $this->local to the new value
74 * @param mixed $input the new value
83 $value = is_null($this->local) ? $this->default : $this->local;
84 if ($value == $input) return false;
86 // validate new value
93 // update local copy of this setting with new value
101 * Clean a value read from a config before using it internally
103 * Default implementation returns $value as is. Subclasses can override.
108 * @param mixed $value
111 protected function cleanValue($value)
113 return $value;
194 * @param bool $echo true: show inputted value, when error occurred, otherwise the stored setting
202 $value = $this->protected;
205 $value = $this->input;
207 $value = is_null($this->local) ? $this->default : $this->local;
211 $value = formText($value);
215 '" name="config[' . $key . ']" class="edit" ' . $disable . '>' . $value . '</textarea>';
220 * Should the current local value be saved?
246 * Generate string to save local setting value to file according to $fmt
258 $value = 'array(' . implode(', ', array_map([$this, 'escape'], $this->local)) . ')';
260 $value = $this->escape($this->local);
263 $out = '$' . $var . "['" . $this->getArrayKey() . "'] = $value;\n";