Modified: phpdoc/en/trunk/reference/mongo/mongobindata.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongobindata.xml 2009-11-19 23:00:15 UTC (rev 291044)
+++ phpdoc/en/trunk/reference/mongo/mongobindata.xml 2009-11-19 23:17:53 UTC (rev 291045)
@@ -18,9 +18,12 @@
The maximum size of a single object that can be inserted into the database
is 4Mb. For data that is larger than this (movies, music, Henry Kissinger's
autobiography), use MongoGridFS. For data that is
- smaller than 4Mb, it will probably be easier to just embed it into the
- document using MongoBinData.
+ smaller than 4Mb, it's probably be easier to just embed it into the document
+ using MongoBinData.
+
+ For example, to embed an image in a document, one could write:
+
]]>
+
+ This class contains a type field, which is currently
+ gives no additional functionality in the driver or the database. There are
+ five predefined types (which are the class constants listed below), and the
+ user can create their own (at the risk of the BSON spec catching up with
+ them). By default, the PHP driver always uses type 2: a byte array.
+
Modified: phpdoc/en/trunk/reference/mongo/mongocode/construct.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocode/construct.xml 2009-11-19 23:00:15 UTC (rev 291044)
+++ phpdoc/en/trunk/reference/mongo/mongocode/construct.xml 2009-11-19 23:17:53 UTC (rev 291045)
@@ -59,7 +59,12 @@
4));
+$code = new MongoCode('function() { '.
+ 'for(i=0;i<10;i++) {'.
+ 'db.foo.update({z : i}, {z : x});'.
+ '}'.
+ 'return x-1;'.
+ '}', array("x" => 4));
var_dump($code);
?>
@@ -75,7 +80,7 @@
int(4)
}
["code"]=>
- string(80) "function(x) { for(i=0;i<10;i++) { db.foo.update({x:i}, {x:i+1}); } return x-1; }"
+ string(80) "function() { for(i=0;i<10;i++) { db.foo.update({z : i}, {z : x}); } return x-1; }"
}
]]>
Modified: phpdoc/en/trunk/reference/mongo/mongocollection/construct.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocollection/construct.xml 2009-11-19 23:00:15 UTC (rev 291044)
+++ phpdoc/en/trunk/reference/mongo/mongocollection/construct.xml 2009-11-19 23:17:53 UTC (rev 291045)
@@ -58,7 +58,7 @@
&reftitle.errors;
- Throws InvalidArgumentException if the collection name is invalid.
+ Throws InvalidArgumentException if the collection name is invalid.
Modified: phpdoc/en/trunk/reference/mongo/mongocollection/count.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocollection/count.xml 2009-11-19 23:00:15 UTC (rev 291044)
+++ phpdoc/en/trunk/reference/mongo/mongocollection/count.xml 2009-11-19 23:17:53 UTC (rev 291045)
@@ -11,8 +11,7 @@
&reftitle.description;
public intMongoCollection::count
- arrayqueryarray()
- arrayfieldsarray()
+ mixedqueryarray()
@@ -26,20 +25,10 @@
- Only count documents matching this query.
+ Array or object with fields to match.
-
-
- fields
-
-
-
- Only count documents with these fields.
-
-
-
@@ -47,7 +36,7 @@
&reftitle.returnvalues;
- Returns the number of documents.
+ Returns the number of documents matching the query.
Modified: phpdoc/en/trunk/reference/mongo/mongocollection/findone.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocollection/findone.xml 2009-11-19 23:00:15 UTC (rev 291044)
+++ phpdoc/en/trunk/reference/mongo/mongocollection/findone.xml 2009-11-19 23:17:53 UTC (rev 291045)
@@ -49,6 +49,13 @@
Returns record matching the search or &null;.
+
+ &reftitle.errors;
+
+ Throws MongoConnectionException if it cannot reach the
+ database.
+
+