svn: /phpdoc/en/trunk/reference/mongo/ mongocollection/remove.xml mongodb/command.xml

From: Date: Tue, 16 Feb 2010 19:21:17 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/ mongocollection/remove.xml mongodb/command.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6079@lists.php.net to get a copy of this message
kristina Tue, 16 Feb 2010 19:21:17 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295181 Log: added note on mapreduce scoping Changed paths: U phpdoc/en/trunk/reference/mongo/mongocollection/remove.xml U phpdoc/en/trunk/reference/mongo/mongodb/command.xml Modified: phpdoc/en/trunk/reference/mongo/mongocollection/remove.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongocollection/remove.xml 2010-02-16 17:41:49 UTC (rev 295180) +++ phpdoc/en/trunk/reference/mongo/mongocollection/remove.xml 2010-02-16 19:21:17 UTC (rev 295181) @@ -78,6 +78,13 @@ </example> </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + MongoDB core docs on <link xlink:href="&url.mongodb.dochub.remove;">remove</link>. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables: Modified: phpdoc/en/trunk/reference/mongo/mongodb/command.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongodb/command.xml 2010-02-16 17:41:49 UTC (rev 295180) +++ phpdoc/en/trunk/reference/mongo/mongodb/command.xml 2010-02-16 19:21:17 UTC (rev 295181) @@ -86,7 +86,7 @@ </screen> </example> <example> - <title><function>MongoDB::command</function> map/reduce example</title> + <title><function>MongoDB::command</function> MapReduce example</title> <para> Get all users with at least on "sale" event, and how many times each of these users has had a sale. @@ -131,6 +131,18 @@ User 49902cde5162504500b45c2c had 14 sale(s). User 4af467e4fd543cce7b0ea8e2 had 1 sale(s). </screen> + <note> + <title>Using <classname>MongoCode</classname></title> + <para> + This example uses <classname>MongoCode</classname>, which can also take a + scope argument. However, at the moment, MongoDB does not support using + scopes in MapReduce. If you would like to use client-side variables in the + MapReduce functions, you can add them to the global scope by using the + optional scope field with the database command. See + <link xlink:href="&url.mongodb.dochub.mapreduce;">MapReduce</link> for more + information. + </para> + </note> <para> If you are going to be using MapReduce, Prajwal Tuladhar created an API for Mongo PHP users which provides a nicer interface than the bare command. You @@ -146,8 +158,7 @@ <refsect1 role="seealso"> &reftitle.seealso; <para> - MongoDB core docs on <link xlink:href="&url.mongodb.dochub.commands;">database commands</link> - and <link xlink:href="&url.mongodb.dochub.mapreduce;">MapReduce</link>. + MongoDB core docs on <link xlink:href="&url.mongodb.dochub.commands;">database commands</link>. </para> </refsect1> </refentry>

« previous php.doc.cvs (#6079) next »