public static function __callStatic($name, $arguments) { if (method_exists(DB::getMDB(), $name)) { return call_user_func_array(array(DB::getMDB(), $name), $arguments); } else { exit('No defined DB method'); } }
/** * Construct */ public function __construct() { $this->db = DB::getMDB(); }