Ejemplo n.º 1
0
 public function __call($name, $arguments)
 {
     if (method_exists($this->cursor, $name)) {
         return Artera_Mongo::bind($this, call_user_func_array(array($this->cursor, $name), $arguments));
     } else {
         throw new Artera_Mongo_Exception("No such method in MongoCursor: {$name}");
     }
 }
Ejemplo n.º 2
0
 public function __call($name, $arguments)
 {
     if (in_array($name, array('listCollections'))) {
         Artera_Mongo::checkConnection();
     }
     if (method_exists($this->db, $name)) {
         return Artera_Mongo::bind($this, call_user_func_array(array($this->db, $name), $arguments));
     }
 }
Ejemplo n.º 3
0
 public function __call($name, $arguments)
 {
     if (method_exists($this->collection, $name)) {
         return Artera_Mongo::bind($this, call_user_func_array(array($this->collection, $name), $arguments));
     }
 }