|
@@ 51-64 (lines=14) @@
|
| 48 |
|
|
| 49 |
|
public function __call($method, $arguments) |
| 50 |
|
{ |
| 51 |
|
if (substr($method, 0, 5) === 'stats') { |
| 52 |
|
$callMethod = lcfirst(substr($method, 5)); |
| 53 |
|
|
| 54 |
|
if (($callMethod === 'or') || ($callMethod === 'and')) { |
| 55 |
|
$callMethod = 'operator' . ucfirst($callMethod); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
call_user_func_array(array($this->stats, $callMethod), $arguments); |
| 59 |
|
|
| 60 |
|
$this->lql->stats($this->stats); |
| 61 |
|
$this->stats->reset(); |
| 62 |
|
|
| 63 |
|
return $this; |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
if (substr($method, 0, 6) === 'filter') { |
| 67 |
|
$callMethod = lcfirst(substr($method, 6)); |
|
@@ 66-79 (lines=14) @@
|
| 63 |
|
return $this; |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
if (substr($method, 0, 6) === 'filter') { |
| 67 |
|
$callMethod = lcfirst(substr($method, 6)); |
| 68 |
|
|
| 69 |
|
if (($callMethod === 'or') || ($callMethod === 'and')) { |
| 70 |
|
$callMethod = 'operator' . ucfirst($callMethod); |
| 71 |
|
} |
| 72 |
|
|
| 73 |
|
call_user_func_array(array($this->filter, $callMethod), $arguments); |
| 74 |
|
|
| 75 |
|
$this->lql->filter($this->filter); |
| 76 |
|
$this->filter->reset(); |
| 77 |
|
|
| 78 |
|
return $this; |
| 79 |
|
} |
| 80 |
|
|
| 81 |
|
trigger_error('Call to undefined method ' . get_class($this) . '::' . $method, E_USER_ERROR); |
| 82 |
|
} |