Lines Matching defs:key
110 foreach ($this->settings as $key => $obj) {
111 $value = $input[$key] ?? null;
169 foreach ($keys as $key) {
170 $obj = $this->instantiateClass($key);
172 if ($obj->shouldHaveDefault() && !isset($this->default[$key])) {
173 $this->undefined[$key] = new SettingNoDefault($key);
176 $d = $this->default[$key] ?? null;
177 $l = $this->local[$key] ?? null;
178 $p = $this->protected[$key] ?? null;
185 * Instantiates the proper class for the given config key
189 * @param string $key
192 protected function instantiateClass($key)
194 if (isset($this->metadata[$key])) {
195 $param = $this->metadata[$key];
196 $class = $this->determineClassName(array_shift($param), $key); // first param is class
197 $obj = new $class($key, $param);
198 $this->settings[$key] = $obj;
200 $obj = new SettingUndefined($key);
201 $this->undefined[$key] = $obj;
210 * @param string $key the settings key
213 protected function determineClassName($class, $key)
223 $this->undefined[$key] = new SettingNoKnownClass($key);
226 $this->undefined[$key] = new SettingNoClass($key);