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}"); } }
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)); } }
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)); } }