|
@@ 1852-1856 (lines=5) @@
|
| 1849 |
|
public function __call($name, $params) { |
| 1850 |
|
$fixedName = $name; |
| 1851 |
|
static::fixPrefix($fixedName); |
| 1852 |
|
if (isset($this->_params[$fixedName])) { |
| 1853 |
|
return new Value($this, $fixedName); |
| 1854 |
|
} elseif (isset($this->_params[$name])) { |
| 1855 |
|
return new Value($this, $name); |
| 1856 |
|
} |
| 1857 |
|
return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
| 1858 |
|
} |
| 1859 |
|
|
|
@@ 1887-1891 (lines=5) @@
|
| 1884 |
|
public function value($name) { |
| 1885 |
|
$fixedName = $name; |
| 1886 |
|
static::fixPrefix($fixedName); |
| 1887 |
|
if (isset($this->_params[$fixedName])) { |
| 1888 |
|
return new Value($this, $fixedName); |
| 1889 |
|
} elseif ($this->_params[$name]) { |
| 1890 |
|
return new Value($this, $name); |
| 1891 |
|
} |
| 1892 |
|
return null; |
| 1893 |
|
} |
| 1894 |
|
|