Modified: phpdoc/en/trunk/reference/mongo/mongo/close.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongo/close.xml 2009-11-17 13:45:16 UTC (rev 290866) +++ phpdoc/en/trunk/reference/mongo/mongo/close.xml 2009-11-17 14:30:02 UTC (rev 290867) @@ -55,7 +55,7 @@ - + booleanpaired&false; - If no parameters are passed, the constructor connects to "localhost:27017" - and returns. + If no parameters are passed, this connects to "localhost:27017" and returns. - If you elect not to connect immediately, (connect is - &false;) you will need to call connect, + If you elect not to connect immediately ($connect is + &false;), you will need to call connect, persistConnect, pairConnect, or pairPersistConnect before doing any database operations. Modified: phpdoc/en/trunk/reference/mongo/mongocollection/count.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongocollection/count.xml 2009-11-17 13:45:16 UTC (rev 290866) +++ phpdoc/en/trunk/reference/mongo/mongocollection/count.xml 2009-11-17 14:30:02 UTC (rev 290867) @@ -61,11 +61,10 @@ $collection->insert(array('x'=>1)); $collection->insert(array('x'=>2)); -$collection->insert(array('x'=>3, 'y'=>1)); +$collection->insert(array('x'=>3)); var_dump($collection->count()); var_dump($collection->count(array('x'=>1))); -var_dump($collection->count(array(), array('z'=>1))); ?> ]]> @@ -75,7 +74,6 @@ Modified: phpdoc/en/trunk/reference/mongo/mongocursor/count.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongocursor/count.xml 2009-11-17 13:45:16 UTC (rev 290866) +++ phpdoc/en/trunk/reference/mongo/mongocursor/count.xml 2009-11-17 14:30:02 UTC (rev 290867) @@ -11,13 +11,24 @@ &reftitle.description; public intMongoCursor::count - + booleanall&false; &reftitle.parameters; - &no.function.parameters; + + + + all + + + + Send cursor limit and skip information to the count function, if applicable. + + + + @@ -26,6 +37,44 @@ The number of documents returned by this cursor's query. + + + &reftitle.examples; + + <function>MongoCursor::count</function> example + +insert(array('x'=>1)); +$collection->insert(array('x'=>2)); +$collection->insert(array('x'=>3)); + +$cursor = $collection->find(); + +var_dump($cursor->count()); +var_dump($cursor->count(true)); + +$cursor->limit(2); + +var_dump($cursor->count()); +var_dump($cursor->count(true)); + +?> +]]> + + &example.outputs.similar; + + + + + + + + + MongoDB::authenticate + Log in to this database + + + &reftitle.description; + + public arrayMongoDB::authenticate + stringusername + stringpassword + + + This method causes its connection to be authenticated. If authentication is + enabled for the database server (it's not, by default), you need to log in + before the database will allow you to do anything. + + + + &reftitle.parameters; + + + + + username + + + + The username. + + + + + + password + + + + The password (in plaintext). + + + + + + + + &reftitle.returnvalues; + + Returns database response. + + + + Modified: phpdoc/en/trunk/reference/mongo/versions.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/versions.xml 2009-11-17 13:45:16 UTC (rev 290866) +++ phpdoc/en/trunk/reference/mongo/versions.xml 2009-11-17 14:30:02 UTC (rev 290867) @@ -17,12 +17,6 @@ - - - - - - @@ -31,7 +25,6 @@ - @@ -46,6 +39,7 @@ +