|
@@ 1875-1879 (lines=5) @@
|
| 1872 |
|
public function __call($name, $params) { |
| 1873 |
|
$fixedName = $name; |
| 1874 |
|
static::fixPrefix($fixedName); |
| 1875 |
|
if (isset($this->_params[$fixedName])) { |
| 1876 |
|
return new Value($this, $fixedName); |
| 1877 |
|
} elseif (isset($this->_params[$name])) { |
| 1878 |
|
return new Value($this, $name); |
| 1879 |
|
} |
| 1880 |
|
return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
| 1881 |
|
} |
| 1882 |
|
|
|
@@ 1910-1914 (lines=5) @@
|
| 1907 |
|
public function value($name) { |
| 1908 |
|
$fixedName = $name; |
| 1909 |
|
static::fixPrefix($fixedName); |
| 1910 |
|
if (isset($this->_params[$fixedName])) { |
| 1911 |
|
return new Value($this, $fixedName); |
| 1912 |
|
} elseif ($this->_params[$name]) { |
| 1913 |
|
return new Value($this, $name); |
| 1914 |
|
} |
| 1915 |
|
return null; |
| 1916 |
|
} |
| 1917 |
|
|