|
@@ 1741-1745 (lines=5) @@
|
| 1738 |
|
public function __call($name, $params) { |
| 1739 |
|
$fixedName = $name; |
| 1740 |
|
static::fixPrefix($fixedName); |
| 1741 |
|
if (isset($this->_params[$fixedName])) { |
| 1742 |
|
return new Value($this, $fixedName); |
| 1743 |
|
} elseif (isset($this->_params[$name])) { |
| 1744 |
|
return new Value($this, $name); |
| 1745 |
|
} |
| 1746 |
|
return call_user_func_array([$this, 'loadRelation'], array_merge([$name], $params)); |
| 1747 |
|
} |
| 1748 |
|
|
|
@@ 1776-1780 (lines=5) @@
|
| 1773 |
|
public function value($name) { |
| 1774 |
|
$fixedName = $name; |
| 1775 |
|
static::fixPrefix($fixedName); |
| 1776 |
|
if (isset($this->_params[$fixedName])) { |
| 1777 |
|
return new Value($this, $fixedName); |
| 1778 |
|
} elseif ($this->_params[$name]) { |
| 1779 |
|
return new Value($this, $name); |
| 1780 |
|
} |
| 1781 |
|
return null; |
| 1782 |
|
} |
| 1783 |
|
|