Exemplo n.º 1
0
 /**
  * Delete a document
  *
  * @param string $id The document id
  * @param string $revision The document revision
  * @return boolean TRUE if the deletion was successful
  * @author Christopher Hlubek <*****@*****.**>
  */
 public function deleteDocument($id, $revision)
 {
     $this->checkDocumentId($id);
     $response = $this->connector->delete('/' . urlencode($this->getDatabaseName()) . '/' . $this->encodeId($id), array('rev' => $revision));
     return is_object($response) && $response->ok === TRUE;
 }
Exemplo n.º 2
0
 /**
  * Remove flow3_test database
  */
 public function tearDown()
 {
     $this->connector->delete('/flow3_test');
 }