File tree Expand file tree Collapse file tree 16 files changed +266
-363
lines changed Expand file tree Collapse file tree 16 files changed +266
-363
lines changed Original file line number Diff line number Diff line change 4
4
MongoDB\\BulkWriteResult Class
5
5
==============================
6
6
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
+
7
20
.. toctree::
8
21
:titlesonly:
9
22
Original file line number Diff line number Diff line change 4
4
MongoDB\\ChangeStream Class
5
5
===========================
6
6
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
+
7
27
.. toctree::
8
28
:titlesonly:
9
29
Original file line number Diff line number Diff line change 4
4
MongoDB\\DeleteResult Class
5
5
===========================
6
6
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
+
7
21
.. toctree::
8
22
:titlesonly:
9
23
Original file line number Diff line number Diff line change 4
4
MongoDB\\InsertManyResult Class
5
5
===============================
6
6
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
+
7
20
.. toctree::
8
21
:titlesonly:
9
22
Original file line number Diff line number Diff line change 4
4
MongoDB\\InsertOneResult Class
5
5
==============================
6
6
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
+
7
20
.. toctree::
8
21
:titlesonly:
9
22
Original file line number Diff line number Diff line change 4
4
MongoDB\\MapReduceResult Class
5
5
==============================
6
6
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
+
7
25
.. toctree::
8
26
:titlesonly:
9
27
Original file line number Diff line number Diff line change 4
4
MongoDB\\Model\\CollectionInfo Class
5
5
====================================
6
6
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
+
7
32
.. toctree::
8
33
:titlesonly:
9
34
Original file line number Diff line number Diff line change
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`.
Original file line number Diff line number Diff line change 4
4
MongoDB\\Model\\DatabaseInfo Class
5
5
==================================
6
6
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
+
7
32
.. toctree::
8
33
:titlesonly:
9
34
Original file line number Diff line number Diff line change
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`.
Original file line number Diff line number Diff line change 4
4
MongoDB\\Model\\IndexInfo Class
5
5
===============================
6
6
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
+
7
30
.. toctree::
8
31
:titlesonly:
9
32
Original file line number Diff line number Diff line change
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`.
Original file line number Diff line number Diff line change 4
4
MongoDB\\UpdateResult Class
5
5
===========================
6
6
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
+
7
22
.. toctree::
8
23
:titlesonly:
9
24
You can’t perform that action at this time.
0 commit comments