@@ 339-349 (lines=11) @@ | ||
336 | ||
337 | protected function importParams() |
|
338 | { |
|
339 | foreach ($this->uri['params'] as $key => $val) { |
|
340 | if (isset($this->{$key}) && is_bool($this->{$key})) { |
|
341 | $this->{$key} = (bool)$val; |
|
342 | continue; |
|
343 | } |
|
344 | if (!property_exists($this, $key)) { |
|
345 | Daemon::log(get_class($this) . ': unrecognized setting \'' . $key . '\''); |
|
346 | continue; |
|
347 | } |
|
348 | $this->{$key} = $val; |
|
349 | } |
|
350 | if (!$this->ctxname) { |
|
351 | return; |
|
352 | } |
@@ 205-215 (lines=11) @@ | ||
202 | */ |
|
203 | protected function importParams() |
|
204 | { |
|
205 | foreach ($this->uri['params'] as $key => $val) { |
|
206 | if (isset($this->{$key}) && is_bool($this->{$key})) { |
|
207 | $this->{$key} = (bool)$val; |
|
208 | continue; |
|
209 | } |
|
210 | if (!property_exists($this, $key)) { |
|
211 | Daemon::log(get_class($this) . ': unrecognized setting \'' . $key . '\''); |
|
212 | continue; |
|
213 | } |
|
214 | $this->{$key} = $val; |
|
215 | } |
|
216 | if (property_exists($this, 'port') && !isset($this->port)) { |
|
217 | if (isset($this->uri['port'])) { |
|
218 | $this->port = $this->uri['port']; |