Example #1
0
 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');
     }
 }
Example #2
0
 /**
  * Construct
  */
 public function __construct()
 {
     $this->db = DB::getMDB();
 }