blob: 08f80072a46e12167c6b3a24b111dc0339247e7b [file] [log] [blame]
Taufan Adityaac5373a2012-03-28 16:03:38 +07001<?php
2
Taufan Adityad44d7202012-03-28 16:24:23 +07003class Mock_Libraries_Table extends CI_Table {
Andrey Andreevf243ce12012-06-09 23:34:21 +03004
Claudio Galdiolo5c9d9052015-01-29 10:25:44 -05005 // Override inaccessible protected method
Taufan Adityad44d7202012-03-28 16:24:23 +07006 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 Andreevf243ce12012-06-09 23:34:21 +030015
Claudio Galdiolo5c9d9052015-01-29 10:25:44 -050016}