Commit graph

112 commits

Author SHA1 Message Date
Hannes Magnusson
e61e6e8a7d Fix return type
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330629 c90b9560-bf6c-de11-be94-00142212c4b1
2013-06-24 19:11:24 +00:00
Derick Rethans
a21bbcd977 Move history to the changelog.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330305 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-20 18:36:35 +00:00
Derick Rethans
e354213395 Fixed PHP-789: Document fsync, j, and wtimeout options for MongoCollection write operations.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330300 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-20 17:16:05 +00:00
Jakub Vrana
c5333caf49 Fix typo in ok description (bug #61304)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330280 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-18 00:12:13 +00:00
Derick Rethans
c930cbb897 PHP-536: Clarify that continueOnError Flag does not insert valid docs when an invalid doc exists in the batch
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330189 c90b9560-bf6c-de11-be94-00142212c4b1
2013-05-08 14:11:52 +00:00
Hannes Magnusson
9aa2442769 Fixed bug#63091 MongoCollection::group() example needs updating
# Thanks fhagard at lightcube dot us !


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329620 c90b9560-bf6c-de11-be94-00142212c4b1
2013-03-03 00:18:49 +00:00
Jeremy Mikola
cde9b9b8ee Fix terms in MongoCollection::ensureIndex() return doc
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329342 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-29 16:10:27 +00:00
Jeremy Mikola
4e4d8d2006 Document non-boolean return values for MongoCollection::ensureIndex()
https://jira.mongodb.org/browse/PHP-671


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329341 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-29 16:09:29 +00:00
Jeremy Mikola
f81e6a03d2 Fix MongoCollection::getIndexInfo() return and example docs
https://jira.mongodb.org/browse/PHP-670


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329340 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-29 16:03:18 +00:00
Philip Olson
04b11e621f Fixed spelling
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329325 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-29 01:47:09 +00:00
Jeremy Mikola
ff6aa0c781 Update Mongo get/setReadPreference return values and error docs
https://jira.mongodb.org/browse/PHP-669


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329318 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-28 23:36:42 +00:00
Jeremy Mikola
88959cefb9 Update Mongo read preference methods for 1.3.3 release
Fix parameter type for setReadPreference() methods, document getReadPreference() return value changes, and update version info for MongoCursor methods.

https://jira.mongodb.org/browse/PHP-666


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329170 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-16 21:36:10 +00:00
Jeremy Mikola
6f59b9c6a9 Document _id generation in MongoCollection insert/save methods
https://jira.mongodb.org/browse/PHP-383


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329040 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-08 23:01:23 +00:00
Jeremy Mikola
2a331a3820 Note that MongoDB GLE will report n=0 for insertions
https://jira.mongodb.org/browse/PHP-620


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329038 c90b9560-bf6c-de11-be94-00142212c4b1
2013-01-08 21:28:08 +00:00
Paul Reinheimer
6ad7dd65d2 - Adding a basic search example, as well as searching for a child item.
Rationale: I was helping a friend yesterday who is Learning MongoDB while they learn how to use the PHP Extension to it. They ended up trying to write a javascript based query to do a simple matching query. I hope these more simplistic examples will help people in that situation.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328711 c90b9560-bf6c-de11-be94-00142212c4b1
2012-12-08 16:23:32 +00:00
Hannes Magnusson
48e1717a75 Mention we populate the _id field with the pregenerated ID
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328551 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-29 00:51:28 +00:00
Hannes Magnusson
8bbdbb8d6b More ReadPreference love rather then slaveokay
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328550 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-29 00:16:49 +00:00
Hannes Magnusson
ec6cb30f0e Make the role=errors section consistent for all write methods
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328545 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-28 20:33:41 +00:00
Hannes Magnusson
e7dbde68a1 More WriteConcern updates
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328544 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-28 20:18:45 +00:00
Hannes Magnusson
26b9276e07 - Update some examples and paragraphs to use WriteConcerns
- Update all options to include the WriteConcern option - and refactored those options into entities


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328543 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-28 19:31:57 +00:00
Jeremy Mikola
8a4640c71c Revise replica set language and MongoClient references
Replace master/slave terminology with primary/secondary
Change most Mongo class references to MongoClient
Enforce 80-char line widths and trim trailing whitespace
Add literal formatting within some paragraphs

https://jira.mongodb.org/browse/PHP-583


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328496 c90b9560-bf6c-de11-be94-00142212c4b1
2012-11-26 03:07:28 +00:00
Hannes Magnusson
206dda18e9 Document MongoCollection->findAndModify()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328209 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-31 23:49:20 +00:00
Hannes Magnusson
24e0d9472e Last minute changes in the return document :]
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328207 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-31 19:08:56 +00:00
Yannick Torres
38e3798be2 Typo found by online editor user
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328184 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-29 15:25:28 +00:00
Jeremy Mikola
1a5e05754b Fix return/error docs for MongoCollection insert, update, and remove
https://jira.mongodb.org/browse/PHP-500


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327927 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-08 04:44:54 +00:00
Jeremy Mikola
83e9d2196e Clarify criteria/new_object merging for Mongo upserts
https://jira.mongodb.org/browse/PHP-459


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327890 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-05 20:49:53 +00:00
Jeremy Mikola
2983ed9c50 Use reverse chronological order for Mongo changelogs
https://jira.mongodb.org/browse/PHP-499


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327889 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-05 20:22:15 +00:00
Jeremy Mikola
b397091f0d Document sparse and expireAfterSeconds Mongo index options
https://bugs.php.net/bug.php?id=63183
https://jira.mongodb.org/browse/PHP-516


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327869 c90b9560-bf6c-de11-be94-00142212c4b1
2012-10-03 21:35:45 +00:00
Jeremy Mikola
0da49ccb6d Revise arg names in MongoCollection::aggregate()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327601 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-10 22:05:37 +00:00
Hannes Magnusson
7a260cda95 Remove extra >, and lets not drop the collection in case people copy&paste this :)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327480 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-05 12:20:49 +00:00
Jeremy Mikola
9e18466c86 Use methodname tag and entities within Mongo read preference docs
https://jira.mongodb.org/browse/PHP-474


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327470 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-04 18:35:02 +00:00
Jeremy Mikola
3fb8222fa7 Fix type docs for Mongo driver read preference constants
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327469 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-04 17:47:05 +00:00
Jeremy Mikola
b8bef8d378 Document MongoDB driver read preferences
https://jira.mongodb.org/browse/PHP-474


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327468 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-04 15:55:54 +00:00
Hannes Magnusson
79fe4688e8 More examples for MongoCollection::aggregate() and a typo fix
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327467 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-04 15:30:40 +00:00
Hannes Magnusson
2365c0c368 Syntax highlighting and fix typo in example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327466 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-04 12:47:49 +00:00
Hannes Magnusson
1c964dfab8 Document new mehtod in 1.3.0 MongoCollection::aggregate()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@327444 c90b9560-bf6c-de11-be94-00142212c4b1
2012-09-03 13:36:34 +00:00
Yannick Torres
4f00b7676d Fix svn keywords
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326835 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-27 14:03:57 +00:00
Hannes Magnusson
c90424bc60 Deprecate whole lot of things
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326702 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-19 16:57:19 +00:00
Hannes Magnusson
fce4cad98c Document MongoCursorException->getHost() & MongoCollection->distinct()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326701 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-19 14:45:48 +00:00
Jeremy Mikola
84d6618ac2 Revise MongoCollection::ensureIndex() background option
https://jira.mongodb.org/browse/PHP-393


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@326493 c90b9560-bf6c-de11-be94-00142212c4b1
2012-07-06 15:05:41 +00:00
Justin Martin
1c5e7d35ce Typo. Patch by Vid Luther (vluther).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@324486 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-23 05:39:16 +00:00
Derick Rethans
42c810b3a5 Add an example too.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323965 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-06 19:03:05 +00:00
Derick Rethans
26d4bbc997 Document continueOnError.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323964 c90b9560-bf6c-de11-be94-00142212c4b1
2012-03-06 18:58:54 +00:00
Sean Coates
013194233d Fix tyop.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323585 c90b9560-bf6c-de11-be94-00142212c4b1
2012-02-27 14:21:59 +00:00
Derick Rethans
dff0dee9c8 More clarifications for indexes.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321552 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-30 10:13:06 +00:00
Philip Olson
55df00f959 Fixed build.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321520 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-29 18:19:42 +00:00
Derick Rethans
a88f54ced1 Added see-also, and a better description.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321516 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-29 15:47:06 +00:00
Derick Rethans
8ad788358d Explain fields for querying and return a bit better. Also add a warning for the
"$" issue and add the difference between find() and findOne().


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321515 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-29 15:45:00 +00:00
Derick Rethans
dec523a7db Explain fields for querying and return a bit better. Also add a warning for the
"$" issue.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321514 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-29 15:29:03 +00:00
Derick Rethans
61bc4ac8fe Layout and rename newobj to new_object.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@321511 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-29 14:59:50 +00:00