cvs: phpdoc /en/reference/mongo versions.xml /en/reference/mongo/mongocollection batchinsert.xml construct.xml getdbref.xml getname.xml remove.xml
save.xml /en/reference/mongo/mongocursor softlimit.xml /en/reference/mongo/mongodb getdbref.xml
| From: | Kristina Chodorow | Date: | Thu, 25 Jun 2009 18:32:49 +0000 |
| Subject: | cvs: phpdoc /en/reference/mongo versions.xml /en/reference/mongo/mongocollection batchinsert.xml construct.xml getdbref.xml getname.xml remove.xml save.xml /en/reference/mongo/mongocursor softlimit.xml /en/reference/mongo/mongodb getdbref.xml |
||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-4240@lists.php.net to get a copy of this message | ||
kristina Thu Jun 25 18:32:49 2009 UTC
Removed files:
/phpdoc/en/reference/mongo/mongocursor softlimit.xml
Modified files:
/phpdoc/en/reference/mongo versions.xml
/phpdoc/en/reference/mongo/mongocollection batchinsert.xml
construct.xml
getdbref.xml getname.xml
remove.xml save.xml
/phpdoc/en/reference/mongo/mongodb getdbref.xml
Log:
more examples, no softLimit
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/versions.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/mongo/versions.xml diff -u phpdoc/en/reference/mongo/versions.xml:1.10 phpdoc/en/reference/mongo/versions.xml:1.11 --- phpdoc/en/reference/mongo/versions.xml:1.10 Wed Jun 24 19:14:05 2009 +++ phpdoc/en/reference/mongo/versions.xml Thu Jun 25 18:32:49 2009 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- Do NOT translate this file --> @@ -67,7 +67,6 @@ <function name='mongocursor::getnext' from='PECL mongo >=0.9.0'/> <function name='mongocursor::hint' from='PECL mongo >=0.9.0'/> <function name='mongocursor::limit' from='PECL mongo >=0.9.0'/> - <function name='mongocursor::softlimit' from='PECL mongo >=0.9.0'/> <function name='mongocursor::next' from='PECL mongo >=0.9.0'/> <function name='mongocursor::skip' from='PECL mongo >=0.9.0'/> <function name='mongocursor::sort' from='PECL mongo >=0.9.0'/> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/batchinsert.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/batchinsert.xml diff -u phpdoc/en/reference/mongo/mongocollection/batchinsert.xml:1.1 phpdoc/en/reference/mongo/mongocollection/batchinsert.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/batchinsert.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/batchinsert.xml Thu Jun 25 18:32:49 2009 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.batchinsert" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::batchInsert</refname> - <refpurpose>Inserts an array of arrays into the collection</refpurpose> + <refpurpose>Inserts multiple documents into this collection</refpurpose> </refnamediv> <refsect1 role="description"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/construct.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/construct.xml diff -u phpdoc/en/reference/mongo/mongocollection/construct.xml:1.1 phpdoc/en/reference/mongo/mongocollection/construct.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/construct.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/construct.xml Thu Jun 25 18:32:49 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::__construct</refname> @@ -28,7 +28,7 @@ </term> <listitem> <para> - Database. + Parent database. </para> </listitem> </varlistentry> @@ -40,7 +40,7 @@ </term> <listitem> <para> - Collection name. + Name for this collection. </para> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/getdbref.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/getdbref.xml diff -u phpdoc/en/reference/mongo/mongocollection/getdbref.xml:1.2 phpdoc/en/reference/mongo/mongocollection/getdbref.xml:1.3 --- phpdoc/en/reference/mongo/mongocollection/getdbref.xml:1.2 Wed Jun 24 19:14:05 2009 +++ phpdoc/en/reference/mongo/mongocollection/getdbref.xml Thu Jun 25 18:32:49 2009 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="mongocollection.getdbref" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::getDBRef</refname> - <refpurpose>Fetches a database reference</refpurpose> + <refpurpose>Fetches the document pointed to by a database reference</refpurpose> </refnamediv> <refsect1 role="description"> @@ -72,6 +72,15 @@ </example> </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><methodname>MongoCollection::createDBRef</methodname></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/getname.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/getname.xml diff -u phpdoc/en/reference/mongo/mongocollection/getname.xml:1.1 phpdoc/en/reference/mongo/mongocollection/getname.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/getname.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/getname.xml Thu Jun 25 18:32:49 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.getname" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::getName</refname> @@ -37,7 +37,10 @@ $m = new Mongo(); $c = $m->selectDB("foo")->selectCollection("bar.baz"); -echo "Working with collection " . $c->getName() . "."; +echo "Working with collection " . $c->getName() . ".\n"; + +// the full namespace is given by the MongoCollection::__toString() method +echo "Working in namespace $c.\n"; ?> ]]> @@ -46,6 +49,7 @@ <screen> <![CDATA[ Working with collection bar.baz. +Working in namespace foo.bar.baz. ]]> </screen> </example> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/remove.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/remove.xml diff -u phpdoc/en/reference/mongo/mongocollection/remove.xml:1.1 phpdoc/en/reference/mongo/mongocollection/remove.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/remove.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/remove.xml Thu Jun 25 18:32:49 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.remove" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::remove</refname> @@ -32,7 +32,7 @@ </varlistentry> <varlistentry> <term> - <parameter>just_one</parameter> + <parameter>justOne</parameter> </term> <listitem> <para> @@ -43,12 +43,41 @@ </variablelist> </para> </refsect1> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns if the command was executed successfully. </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <example> + <title><function>MongoCollection::remove</function> with justOne example</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$radioactive = $db->selectCollection('radioactive'); + +// count how much more plutonium there is +$remaining = $radioactive->count(array('type' => 94)); + +$halflife = $remaining/2; + +// remove half of it +while ($halflife > 0) { + $uranium->remove(array('type' => 94), true); + $halflife--; +} + +?> +]]> + </programlisting> + </example> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/save.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/save.xml diff -u phpdoc/en/reference/mongo/mongocollection/save.xml:1.1 phpdoc/en/reference/mongo/mongocollection/save.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/save.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/save.xml Thu Jun 25 18:32:49 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.save" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::save</refname> @@ -43,6 +43,35 @@ Returns if the object was saved. </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <example> + <title><function>MongoCollection::save</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$obj = array('x' => 1); + +// insert $obj into the db +$collection->save($obj); + +// add another field +$obj['foo'] = 'bar'; + +// $obj cannot be inserted again, causes duplicate _id error +$collection->insert($obj); + +// save updates $obj with the new field +$collection->save($obj); + +?> +]]> + </programlisting> + </example> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongodb/getdbref.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongodb/getdbref.xml diff -u phpdoc/en/reference/mongo/mongodb/getdbref.xml:1.1 phpdoc/en/reference/mongo/mongodb/getdbref.xml:1.2 --- phpdoc/en/reference/mongo/mongodb/getdbref.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongodb/getdbref.xml Thu Jun 25 18:32:49 2009 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongodb.getdbref" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoDB::getDBRef</refname> - <refpurpose>Fetches a database reference</refpurpose> + <refpurpose>Fetches the document pointed to by a database reference</refpurpose> </refnamediv> <refsect1 role="description"> @@ -36,7 +36,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Returns the database document pointed to by the reference. + Returns the document pointed to by the reference. </para> </refsect1> </refentry>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/versions.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc/en/reference/mongo/versions.xml diff -u phpdoc/en/reference/mongo/versions.xml:1.10 phpdoc/en/reference/mongo/versions.xml:1.11 --- phpdoc/en/reference/mongo/versions.xml:1.10 Wed Jun 24 19:14:05 2009 +++ phpdoc/en/reference/mongo/versions.xml Thu Jun 25 18:32:49 2009 @@ -1,5 +1,5 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.10 $ --> +<!-- $Revision: 1.11 $ --> <!-- Do NOT translate this file --> @@ -67,7 +67,6 @@ <function name='mongocursor::getnext' from='PECL mongo >=0.9.0'/> <function name='mongocursor::hint' from='PECL mongo >=0.9.0'/> <function name='mongocursor::limit' from='PECL mongo >=0.9.0'/> - <function name='mongocursor::softlimit' from='PECL mongo >=0.9.0'/> <function name='mongocursor::next' from='PECL mongo >=0.9.0'/> <function name='mongocursor::skip' from='PECL mongo >=0.9.0'/> <function name='mongocursor::sort' from='PECL mongo >=0.9.0'/> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/batchinsert.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/batchinsert.xml diff -u phpdoc/en/reference/mongo/mongocollection/batchinsert.xml:1.1 phpdoc/en/reference/mongo/mongocollection/batchinsert.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/batchinsert.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/batchinsert.xml Thu Jun 25 18:32:49 2009 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.batchinsert" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::batchInsert</refname> - <refpurpose>Inserts an array of arrays into the collection</refpurpose> + <refpurpose>Inserts multiple documents into this collection</refpurpose> </refnamediv> <refsect1 role="description"> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/construct.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/construct.xml diff -u phpdoc/en/reference/mongo/mongocollection/construct.xml:1.1 phpdoc/en/reference/mongo/mongocollection/construct.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/construct.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/construct.xml Thu Jun 25 18:32:49 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::__construct</refname> @@ -28,7 +28,7 @@ </term> <listitem> <para> - Database. + Parent database. </para> </listitem> </varlistentry> @@ -40,7 +40,7 @@ </term> <listitem> <para> - Collection name. + Name for this collection. </para> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/getdbref.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/getdbref.xml diff -u phpdoc/en/reference/mongo/mongocollection/getdbref.xml:1.2 phpdoc/en/reference/mongo/mongocollection/getdbref.xml:1.3 --- phpdoc/en/reference/mongo/mongocollection/getdbref.xml:1.2 Wed Jun 24 19:14:05 2009 +++ phpdoc/en/reference/mongo/mongocollection/getdbref.xml Thu Jun 25 18:32:49 2009 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <refentry xml:id="mongocollection.getdbref" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::getDBRef</refname> - <refpurpose>Fetches a database reference</refpurpose> + <refpurpose>Fetches the document pointed to by a database reference</refpurpose> </refnamediv> <refsect1 role="description"> @@ -72,6 +72,15 @@ </example> </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><methodname>MongoCollection::createDBRef</methodname></member> + </simplelist> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/getname.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/getname.xml diff -u phpdoc/en/reference/mongo/mongocollection/getname.xml:1.1 phpdoc/en/reference/mongo/mongocollection/getname.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/getname.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/getname.xml Thu Jun 25 18:32:49 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.getname" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::getName</refname> @@ -37,7 +37,10 @@ $m = new Mongo(); $c = $m->selectDB("foo")->selectCollection("bar.baz"); -echo "Working with collection " . $c->getName() . "."; +echo "Working with collection " . $c->getName() . ".\n"; + +// the full namespace is given by the MongoCollection::__toString() method +echo "Working in namespace $c.\n"; ?> ]]> @@ -46,6 +49,7 @@ <screen> <![CDATA[ Working with collection bar.baz. +Working in namespace foo.bar.baz. ]]> </screen> </example> http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/remove.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/remove.xml diff -u phpdoc/en/reference/mongo/mongocollection/remove.xml:1.1 phpdoc/en/reference/mongo/mongocollection/remove.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/remove.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/remove.xml Thu Jun 25 18:32:49 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.remove" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::remove</refname> @@ -32,7 +32,7 @@ </varlistentry> <varlistentry> <term> - <parameter>just_one</parameter> + <parameter>justOne</parameter> </term> <listitem> <para> @@ -43,12 +43,41 @@ </variablelist> </para> </refsect1> + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns if the command was executed successfully. </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <example> + <title><function>MongoCollection::remove</function> with justOne example</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$radioactive = $db->selectCollection('radioactive'); + +// count how much more plutonium there is +$remaining = $radioactive->count(array('type' => 94)); + +$halflife = $remaining/2; + +// remove half of it +while ($halflife > 0) { + $uranium->remove(array('type' => 94), true); + $halflife--; +} + +?> +]]> + </programlisting> + </example> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongocollection/save.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongocollection/save.xml diff -u phpdoc/en/reference/mongo/mongocollection/save.xml:1.1 phpdoc/en/reference/mongo/mongocollection/save.xml:1.2 --- phpdoc/en/reference/mongo/mongocollection/save.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongocollection/save.xml Thu Jun 25 18:32:49 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongocollection.save" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCollection::save</refname> @@ -43,6 +43,35 @@ Returns if the object was saved. </para> </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <example> + <title><function>MongoCollection::save</function> example</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$obj = array('x' => 1); + +// insert $obj into the db +$collection->save($obj); + +// add another field +$obj['foo'] = 'bar'; + +// $obj cannot be inserted again, causes duplicate _id error +$collection->insert($obj); + +// save updates $obj with the new field +$collection->save($obj); + +?> +]]> + </programlisting> + </example> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mongo/mongodb/getdbref.xml?r1=1.1&r2=1.2&diff_format=u Index: phpdoc/en/reference/mongo/mongodb/getdbref.xml diff -u phpdoc/en/reference/mongo/mongodb/getdbref.xml:1.1 phpdoc/en/reference/mongo/mongodb/getdbref.xml:1.2 --- phpdoc/en/reference/mongo/mongodb/getdbref.xml:1.1 Wed May 20 22:31:40 2009 +++ phpdoc/en/reference/mongo/mongodb/getdbref.xml Thu Jun 25 18:32:49 2009 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry xml:id="mongodb.getdbref" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoDB::getDBRef</refname> - <refpurpose>Fetches a database reference</refpurpose> + <refpurpose>Fetches the document pointed to by a database reference</refpurpose> </refnamediv> <refsect1 role="description"> @@ -36,7 +36,7 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Returns the database document pointed to by the reference. + Returns the document pointed to by the reference. </para> </refsect1> </refentry>