svn: /phpdoc/en/trunk/reference/mongo/ mongocollection/group.xml testing.xml

From: Date: Mon, 24 May 2010 16:10:09 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/ mongocollection/group.xml testing.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-6724@lists.php.net to get a copy of this message
kristina Mon, 24 May 2010 16:10:09 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=299698 Log: updated group params Changed paths: U phpdoc/en/trunk/reference/mongo/mongocollection/group.xml U phpdoc/en/trunk/reference/mongo/testing.xml Modified: phpdoc/en/trunk/reference/mongo/mongocollection/group.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongocollection/group.xml 2010-05-24 15:58:30 UTC (rev 299697) +++ phpdoc/en/trunk/reference/mongo/mongocollection/group.xml 2010-05-24 16:10:09 UTC (rev 299698) @@ -54,18 +54,38 @@ </term> <listitem> <para> - A function that aggregates (reduces) the objects iterated. + A function that takes two arguments (the current document and the + aggregation to this point) and does the aggregation. </para> </listitem> </varlistentry> <varlistentry> <term> - <parameter>condition</parameter> + <parameter>options</parameter> </term> <listitem> <para> - An condition that must be true for a row to be considered. + Optional parameters to the group command. Valid options include: </para> + <itemizedlist> + <listitem> + <para> + <literal>"condition"</literal> + </para> + <para> + Criteria for including a document in the aggregation. + </para> + </listitem> + <listitem> + <para> + <literal>"finalize"</literal> + </para> + <para> + Function called once per unique key that takes the final output of the + reduce function. + </para> + </listitem> + </itemizedlist> </listitem> </varlistentry> </variablelist> Modified: phpdoc/en/trunk/reference/mongo/testing.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/testing.xml 2010-05-24 15:58:30 UTC (rev 299697) +++ phpdoc/en/trunk/reference/mongo/testing.xml 2010-05-24 16:10:09 UTC (rev 299698) @@ -12,6 +12,12 @@ be installed via PEAR. </para> <para> + You must set <literal>error_reporting</literal> in php.ini to + <literal>E_STRICT | E_ALL</literal> for all of the tests to pass. If you do + not, you will get some failures that say the test was expecting a warning or + error. + </para> + <para> To run the tests, make sure that there is a MongoDB server running locally on port 27017. Make sure you're in the main directory of the driver source you downloaded from Github. Run:

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