Lines Matching defs:local
17 /** @var mixed the local value of this setting */
18 protected $local;
59 * @param mixed $local local setting value
62 public function initialize($default = null, $local = null, $protected = null)
65 $this->local = $this->cleanValue($local);
72 * - if changed value passes validation check, set $this->local to the new value
83 $value = is_null($this->local) ? $this->default : $this->local;
93 // update local copy of this setting with new value
94 $this->local = $input;
207 $value = is_null($this->local) ? $this->default : $this->local;
220 * Should the current local value be saved?
228 if ($this->local === null) return false;
229 if ($this->default == $this->local) return false;
246 * Generate string to save local setting value to file according to $fmt
257 if (is_array($this->local)) {
258 $value = 'array(' . implode(', ', array_map([$this, 'escape'], $this->local)) . ')';
260 $value = $this->escape($this->local);
298 return !$this->isProtected() && is_null($this->local);