Taufan Aditya | ac5373a | 2012-03-28 16:03:38 +0700 | [diff] [blame] | 1 | <?php |
| 2 | |
Taufan Aditya | d44d720 | 2012-03-28 16:24:23 +0700 | [diff] [blame] | 3 | class Mock_Libraries_Table extends CI_Table { |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 4 | |
Claudio Galdiolo | 5c9d905 | 2015-01-29 10:25:44 -0500 | [diff] [blame^] | 5 | // Override inaccessible protected method |
Taufan Aditya | d44d720 | 2012-03-28 16:24:23 +0700 | [diff] [blame] | 6 | public function __call($method, $params) |
| 7 | { |
| 8 | if (is_callable(array($this, '_'.$method))) |
| 9 | { |
| 10 | return call_user_func_array(array($this, '_'.$method), $params); |
| 11 | } |
| 12 | |
| 13 | throw new BadMethodCallException('Method '.$method.' was not found'); |
| 14 | } |
Andrey Andreev | f243ce1 | 2012-06-09 23:34:21 +0300 | [diff] [blame] | 15 | |
Claudio Galdiolo | 5c9d905 | 2015-01-29 10:25:44 -0500 | [diff] [blame^] | 16 | } |