|
@@ 1910-1914 (lines=5) @@
|
| 1907 |
|
public function __call($name, $params) { |
| 1908 |
|
$fixedName = $name; |
| 1909 |
|
static::fixPrefix($fixedName); |
| 1910 |
|
if (isset($this->_params[$fixedName])) { |
| 1911 |
|
return new Value($this, $fixedName); |
| 1912 |
|
} elseif (isset($this->_params[$name])) { |
| 1913 |
|
return new Value($this, $name); |
| 1914 |
|
} |
| 1915 |
|
return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
| 1916 |
|
} |
| 1917 |
|
|
|
@@ 1945-1949 (lines=5) @@
|
| 1942 |
|
public function value($name) { |
| 1943 |
|
$fixedName = $name; |
| 1944 |
|
static::fixPrefix($fixedName); |
| 1945 |
|
if (isset($this->_params[$fixedName])) { |
| 1946 |
|
return new Value($this, $fixedName); |
| 1947 |
|
} elseif ($this->_params[$name]) { |
| 1948 |
|
return new Value($this, $name); |
| 1949 |
|
} |
| 1950 |
|
return null; |
| 1951 |
|
} |
| 1952 |
|
|