CouchdbClient::copyDoc

Copies a CouchDB document

Description

public array CouchdbClient::copyDoc ( string $doc_id , string $new_doc_id [, string $new_doc_revision ] )

Warning

This function is currently not documented; only its argument list is available.

Parameters

doc_id

The couchDB document DocID of the source document.

new_doc_id

The couchDB document DocID of the new document.

new_doc_revision

The couchDB document revision of the source document.

Return Values

Returns an array representing the CouchDB server response.

Errors/Exceptions

Throws CouchdbClientException.

Examples

Example #1 CouchdbClient::copyDoc example

<?php

/* ... */

?>

The above example will output something similar to:

...