|
@@ 1862-1866 (lines=5) @@
|
| 1859 |
|
public function __call($name, $params) { |
| 1860 |
|
$fixedName = $name; |
| 1861 |
|
static::fixPrefix($fixedName); |
| 1862 |
|
if (isset($this->_params[$fixedName])) { |
| 1863 |
|
return new Value($this, $fixedName); |
| 1864 |
|
} elseif (isset($this->_params[$name])) { |
| 1865 |
|
return new Value($this, $name); |
| 1866 |
|
} |
| 1867 |
|
return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
| 1868 |
|
} |
| 1869 |
|
|
|
@@ 1897-1901 (lines=5) @@
|
| 1894 |
|
public function value($name) { |
| 1895 |
|
$fixedName = $name; |
| 1896 |
|
static::fixPrefix($fixedName); |
| 1897 |
|
if (isset($this->_params[$fixedName])) { |
| 1898 |
|
return new Value($this, $fixedName); |
| 1899 |
|
} elseif ($this->_params[$name]) { |
| 1900 |
|
return new Value($this, $name); |
| 1901 |
|
} |
| 1902 |
|
return null; |
| 1903 |
|
} |
| 1904 |
|
|