Skip to content

Commit 51d3456

Browse files
committed
reorganizing files
1 parent 87b5c60 commit 51d3456

16 files changed

+266
-363
lines changed

docs/reference/class/MongoDBBulkWriteResult.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44
MongoDB\\BulkWriteResult Class
55
==============================
66

7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\BulkWriteResult
11+
12+
This class contains information about an executed bulk write operation. It
13+
encapsulates a :php:`MongoDB\\Driver\\WriteResult
14+
<class.mongodb-driver-writeresult>` object and is returned from
15+
:phpmethod:`MongoDB\\Collection::bulkWrite()`.
16+
17+
Methods
18+
-------
19+
720
.. toctree::
821
:titlesonly:
922

docs/reference/class/MongoDBChangeStream.txt

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,26 @@
44
MongoDB\\ChangeStream Class
55
===========================
66

7+
.. versionadded:: 1.3
8+
9+
Definition
10+
----------
11+
12+
.. phpclass:: MongoDB\\ChangeStream
13+
14+
This class extends PHP's :php:`Iterator <manual/en/class.iterator.php>`
15+
interface. An instance of this class is returned by
16+
:phpmethod:`MongoDB\\Client::watch()`,
17+
:phpmethod:`MongoDB\\Database::watch()`, and
18+
:phpmethod:`MongoDB\\Collection::watch()`.
19+
20+
This class allows for iteration of events in a change stream. It also allows
21+
iteration to automatically resume after certain errors, such as a replica set
22+
failover.
23+
24+
Methods
25+
-------
26+
727
.. toctree::
828
:titlesonly:
929

docs/reference/class/MongoDBDeleteResult.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@
44
MongoDB\\DeleteResult Class
55
===========================
66

7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\DeleteResult
11+
12+
This class contains information about an executed delete operation. It
13+
encapsulates a :php:`MongoDB\\Driver\\WriteResult
14+
<class.mongodb-driver-writeresult>` object and is returned from
15+
:phpmethod:`MongoDB\\Collection::deleteMany()` or
16+
:phpmethod:`MongoDB\\Collection::deleteOne()`.
17+
18+
Methods
19+
-------
20+
721
.. toctree::
822
:titlesonly:
923

docs/reference/class/MongoDBInsertManyResult.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44
MongoDB\\InsertManyResult Class
55
===============================
66

7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\InsertManyResult
11+
12+
This class contains information about an executed bulk insert operation. It
13+
encapsulates a :php:`MongoDB\\Driver\\WriteResult
14+
<class.mongodb-driver-writeresult>` object and is returned from
15+
:phpmethod:`MongoDB\\Collection::insertMany()`.
16+
17+
Methods
18+
-------
19+
720
.. toctree::
821
:titlesonly:
922

docs/reference/class/MongoDBInsertOneResult.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,19 @@
44
MongoDB\\InsertOneResult Class
55
==============================
66

7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\InsertOneResult
11+
12+
This class contains information about an executed insert operation. It
13+
encapsulates a :php:`MongoDB\\Driver\\WriteResult
14+
<class.mongodb-driver-writeresult>` object and is returned from
15+
:phpmethod:`MongoDB\\Collection::insertOne()`.
16+
17+
Methods
18+
-------
19+
720
.. toctree::
821
:titlesonly:
922

docs/reference/class/MongoDBMapReduceResult.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@
44
MongoDB\\MapReduceResult Class
55
==============================
66

7+
.. versionadded:: 1.2
8+
9+
Definition
10+
----------
11+
12+
.. phpclass:: MongoDB\\MapReduceResult
13+
14+
This class extends PHP's :php:`IteratorAggregate <iteratoraggregate>`
15+
interface. An instance of this class is returned by
16+
:phpmethod:`MongoDB\\Collection::mapReduce()`.
17+
18+
This class allows for iteration of map-reduce results irrespective of the
19+
output method (e.g. inline, collection). It also provides access to command
20+
statistics.
21+
22+
Methods
23+
-------
24+
725
.. toctree::
826
:titlesonly:
927

docs/reference/class/MongoDBModelCollectionInfo.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@
44
MongoDB\\Model\\CollectionInfo Class
55
====================================
66

7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\Model\\CollectionInfo
11+
12+
This class models information about a collection. Instances of this class are
13+
returned by traversing a :phpclass:`MongoDB\\Model\\CollectionInfoIterator`,
14+
which is returned by :phpmethod:`MongoDB\\Database::listCollections()`.
15+
16+
.. versionchanged:: 1.4
17+
18+
This class implements PHP's :php:`ArrayAccess <arrayaccess>` interface. This
19+
provides a mechanism for accessing index fields for which there exists no
20+
helper method. :php:`isset() <isset>` may be used to check for the existence
21+
of a field before accessing it with ``[]``.
22+
23+
.. note::
24+
25+
The :phpclass:`MongoDB\\Model\\CollectionInfo` class is immutable. Attempting
26+
to modify it via the :php:`ArrayAccess <arrayaccess>` interface will
27+
result in a :phpclass:`MongoDB\\Exception\\BadMethodCallException`.
28+
29+
Methods
30+
-------
31+
732
.. toctree::
833
:titlesonly:
934

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. _php-model-collection-info-iterator:
2+
3+
============================================
4+
MongoDB\\Model\\CollectionInfoIterator Class
5+
============================================
6+
7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\Model\\CollectionInfoIterator
11+
12+
This interface extends PHP's :php:`Iterator <manual/en/class.iterator.php>`
13+
interface. An instance of this interface is returned by
14+
:phpmethod:`MongoDB\\Database::listCollections()`.
15+
16+
Methods
17+
-------
18+
19+
This interface adds no new methods to :php:`Iterator
20+
<manual/en/class.iterator.php>`, but specifies that :php:`current()
21+
<manual/en/iterator.current.php>` will return an instance of
22+
:phpclass:`MongoDB\\Model\\CollectionInfo`.

docs/reference/class/MongoDBModelDatabaseInfo.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,31 @@
44
MongoDB\\Model\\DatabaseInfo Class
55
==================================
66

7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\Model\\DatabaseInfo
11+
12+
This class models information about a database. Instances of this class are
13+
returned by traversing a :phpclass:`MongoDB\\Model\\DatabaseInfoIterator`,
14+
which is returned by :phpmethod:`MongoDB\\Client::listDatabases()`.
15+
16+
.. versionchanged:: 1.4
17+
18+
This class implements PHP's :php:`ArrayAccess <arrayaccess>` interface. This
19+
provides a mechanism for accessing index fields for which there exists no
20+
helper method. :php:`isset() <isset>` may be used to check for the existence
21+
of a field before accessing it with ``[]``.
22+
23+
.. note::
24+
25+
The :phpclass:`MongoDB\\Model\\DatabaseInfo` class is immutable. Attempting
26+
to modify it via the :php:`ArrayAccess <arrayaccess>` interface will
27+
result in a :phpclass:`MongoDB\\Exception\\BadMethodCallException`.
28+
29+
Methods
30+
-------
31+
732
.. toctree::
833
:titlesonly:
934

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. _php-model-database-info-iterator:
2+
3+
==========================================
4+
MongoDB\\Model\\DatabaseInfoIterator Class
5+
==========================================
6+
7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\Model\\DatabaseInfoIterator
11+
12+
This interface extends PHP's :php:`Iterator <manual/en/class.iterator.php>`
13+
interface. An instance of this interface is returned by
14+
:phpmethod:`MongoDB\\Client::listDatabases()`.
15+
16+
Methods
17+
-------
18+
19+
This interface adds no new methods to :php:`Iterator
20+
<manual/en/class.iterator.php>`, but specifies that :php:`current()
21+
<manual/en/iterator.current.php>` will return an instance of
22+
:phpclass:`MongoDB\\Model\\DatabaseInfo`.

docs/reference/class/MongoDBModelIndexInfo.txt

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@
44
MongoDB\\Model\\IndexInfo Class
55
===============================
66

7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\Model\\IndexInfo
11+
12+
This class models information about an index. Instances of this class are
13+
returned by traversing a :phpclass:`MongoDB\\Model\\IndexInfoIterator`,
14+
which is returned by :phpmethod:`MongoDB\\Collection::listIndexes()`.
15+
16+
This class implements PHP's :php:`ArrayAccess <arrayaccess>` interface. This
17+
provides a mechanism for accessing index fields for which there exists no
18+
helper method. :php:`isset() <isset>` may be used to check for the existence
19+
of a field before accessing it with ``[]``.
20+
21+
.. note::
22+
23+
The :phpclass:`MongoDB\\Model\\IndexInfo` class is immutable. Attempting
24+
to modify it via the :php:`ArrayAccess <arrayaccess>` interface will
25+
result in a :phpclass:`MongoDB\\Exception\\BadMethodCallException`.
26+
27+
Methods
28+
-------
29+
730
.. toctree::
831
:titlesonly:
932

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. _php-model-index-info-iterator:
2+
3+
=======================================
4+
MongoDB\\Model\\IndexInfoIterator Class
5+
=======================================
6+
7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\Model\\IndexInfoIterator
11+
12+
This interface extends PHP's :php:`Iterator <manual/en/class.iterator.php>`
13+
interface. An instance of this interface is returned by
14+
:phpmethod:`MongoDB\\Collection::listIndexes()`.
15+
16+
Methods
17+
-------
18+
19+
This interface adds no new methods to :php:`Iterator
20+
<manual/en/class.iterator.php>`, but specifies that :php:`current()
21+
<manual/en/iterator.current.php>` will return an instance of
22+
:phpclass:`MongoDB\\Model\\IndexInfo`.

docs/reference/class/MongoDBUpdateResult.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@
44
MongoDB\\UpdateResult Class
55
===========================
66

7+
Definition
8+
----------
9+
10+
.. phpclass:: MongoDB\\UpdateResult
11+
12+
This class contains information about an executed update or replace
13+
operation. It encapsulates a :php:`MongoDB\\Driver\\WriteResult
14+
<class.mongodb-driver-writeresult>` object and is returned from
15+
:phpmethod:`MongoDB\\Collection::replaceOne()`,
16+
:phpmethod:`MongoDB\\Collection::updateMany()`, or
17+
:phpmethod:`MongoDB\\Collection::updateOne()`.
18+
19+
Methods
20+
-------
21+
722
.. toctree::
823
:titlesonly:
924

0 commit comments

Comments
 (0)