@@ 1868-1872 (lines=5) @@ | ||
1865 | public function __call($name, $params) { |
|
1866 | $fixedName = $name; |
|
1867 | static::fixPrefix($fixedName); |
|
1868 | if (isset($this->_params[$fixedName])) { |
|
1869 | return new Value($this, $fixedName); |
|
1870 | } elseif (isset($this->_params[$name])) { |
|
1871 | return new Value($this, $name); |
|
1872 | } |
|
1873 | return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
|
1874 | } |
|
1875 | ||
@@ 1903-1907 (lines=5) @@ | ||
1900 | public function value($name) { |
|
1901 | $fixedName = $name; |
|
1902 | static::fixPrefix($fixedName); |
|
1903 | if (isset($this->_params[$fixedName])) { |
|
1904 | return new Value($this, $fixedName); |
|
1905 | } elseif ($this->_params[$name]) { |
|
1906 | return new Value($this, $name); |
|
1907 | } |
|
1908 | return null; |
|
1909 | } |
|
1910 |