diff --git a/reference/mongo/mongogridfs/delete.xml b/reference/mongo/mongogridfs/delete.xml new file mode 100644 index 0000000000..fb47a2a2cd --- /dev/null +++ b/reference/mongo/mongogridfs/delete.xml @@ -0,0 +1,62 @@ + + + + + + MongoGridFS::delete + Delete a file from the database + + + + &reftitle.description; + + public booleanMongoGridFS::delete + mixedid + + + + + &reftitle.parameters; + + + + + id + + + + _id of the file to remove. + + + + + + + + + &reftitle.returnvalues; + + Returns if the remove was successfully sent to the database. + + + + + diff --git a/reference/mongo/mongogridfs/get.xml b/reference/mongo/mongogridfs/get.xml new file mode 100644 index 0000000000..0fd5ed3708 --- /dev/null +++ b/reference/mongo/mongogridfs/get.xml @@ -0,0 +1,62 @@ + + + + + + MongoGridFS::get + Retrieve a file from the database + + + + &reftitle.description; + + public MongoGridFSFileMongoGridFS::get + mixedid + + + + + &reftitle.parameters; + + + + + id + + + + _id of the file to find. + + + + + + + + + &reftitle.returnvalues; + + Returns the file, if found, or &null;. + + + + + diff --git a/reference/mongo/mongogridfs/put.xml b/reference/mongo/mongogridfs/put.xml new file mode 100644 index 0000000000..90161cd997 --- /dev/null +++ b/reference/mongo/mongogridfs/put.xml @@ -0,0 +1,73 @@ + + + + + + MongoGridFS::put + Stores a file in the database + + + + &reftitle.description; + + public mixedMongoGridFS::put + stringfilename + arrayextraarray() + + + + + &reftitle.parameters; + + + + + filename + + + + The name of the file. + + + + + + extra + + + + Other metadata to add to the file saved. + + + + + + + + + &reftitle.returnvalues; + + Returns the _id of the saved object. + + + + + diff --git a/reference/mongo/versions.xml b/reference/mongo/versions.xml index 2d50d0d352..cb63acd304 100644 --- a/reference/mongo/versions.xml +++ b/reference/mongo/versions.xml @@ -100,6 +100,9 @@ + + +