Skip to content

Commit 637c1e0

Browse files
committed
add to each page
1 parent 2b80ac7 commit 637c1e0

File tree

7 files changed

+63
-10
lines changed

7 files changed

+63
-10
lines changed

source/crud/delete.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ options you can set in the array:
101101

102102
* - ``collation``
103103
- | Specifies the kind of language collation to use when comparing
104-
strings. For more information, see :manual:`Collation </reference/collation/#std-label-collation>`
105-
in the {+mdb-server+} manual.
104+
strings. To learn more, see the :ref:`php-delete-collation` section
105+
of this page.
106106

107107
* - ``writeConcern``
108108
- | Sets the write concern for the operation. This option defaults to
@@ -152,6 +152,13 @@ operation:
152152
the preceding example, the library deletes only the first document that has
153153
a ``name`` value containing ``'Mongo'``.
154154

155+
.. _php-delete-collation:
156+
157+
Collation
158+
~~~~~~~~~
159+
160+
.. include:: /includes/collation.rst
161+
155162
Return Value
156163
------------
157164

source/crud/query/count.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ describes some options you can set to customize the count operation:
120120
- Description
121121

122122
* - ``collation``
123-
- | The collation to use for the operation.
123+
- | The collation to use for the operation. To learn more,
124+
see the :ref:`php-count-collation` section of this page.
124125
| **Type**: ``array|object``
125126

126127
* - ``hint``
@@ -166,6 +167,13 @@ operation to count a maximum of ``100`` results:
166167

167168
Number of companies with 50 employees: 100
168169

170+
.. _php-count-collation:
171+
172+
Collation
173+
`````````
174+
175+
.. include:: /includes/collation.rst
176+
169177
.. _php-estimated-count:
170178

171179
Retrieve an Estimated Count

source/crud/query/distinct.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ options you can set to customize the operation:
123123
- Description
124124

125125
* - ``collation``
126-
- | The collation to use for the operation.
126+
- | The collation to use for the operation. To learn more, see the
127+
:ref:`php-distinct-collation` section of this page.
127128
| **Type**: ``array|object``
128129

129130
* - ``maxTimeMS``
@@ -169,6 +170,13 @@ in an options array to add a comment to the operation:
169170
"Angie'S Cafe Pizza"
170171
...
171172

173+
.. _php-distinct-collation:
174+
175+
Collation
176+
`````````
177+
178+
.. include:: /includes/collation.rst
179+
172180
API Documentation
173181
-----------------
174182

source/crud/query/retrieve.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ you can set in the array:
190190

191191
* - ``collation``
192192
- | The collation to use for the operation. The default value is the collation
193-
specified for the collection.
193+
specified for the collection. To learn more, see the :ref:`php-retrieve-collation`
194+
section of this page.
194195
| **Type**: ``array|object``
195196

196197
* - ``comment``
@@ -233,6 +234,13 @@ For a full list of options, see the API documentation for the
233234
`findOne() <{+api+}/method/MongoDBCollection-findOne/#parameters>`__ and
234235
`find() <{+api+}/method/MongoDBCollection-find/#parameters>`__ parameters.
235236

237+
.. _php-retrieve-collation:
238+
239+
Collation
240+
`````````
241+
242+
.. include:: /includes/collation.rst
243+
236244
.. _php-retrieve-additional-information:
237245

238246
Additional Information

source/crud/replace.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ table describes some options you can set in the array:
159159

160160
* - ``collation``
161161
- | Specifies the kind of language collation to use when sorting
162-
results. For more information, see :manual:`Collation </reference/collation/#std-label-collation>`
163-
in the {+mdb-server+} manual.
162+
results. To learn more, see the :ref:`php-replace-collation`
163+
section of this page.
164164

165165
* - ``hint``
166166
- | Gets or sets the index to scan for documents.
@@ -197,6 +197,13 @@ filter doesn't match any existing documents:
197197
:language: php
198198
:copyable:
199199

200+
.. _php-replace-collation:
201+
202+
Collation
203+
~~~~~~~~~
204+
205+
.. include:: /includes/collation.rst
206+
200207
Additional Information
201208
----------------------
202209

source/crud/update.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ describes some options you can set in the array:
125125

126126
* - ``collation``
127127
- | Specifies the kind of language collation to use when sorting
128-
results. For more information, see :manual:`Collation </reference/collation/#std-label-collation>`
129-
in the {+mdb-server+} manual.
128+
results. To learn more, see the :ref:`php-update-collation` section
129+
of this page.
130130

131131
* - ``arrayFilters``
132132
- | Specifies which array elements an update applies to if the operation modifies
@@ -166,6 +166,13 @@ match any existing documents.
166166
:language: php
167167
:dedent:
168168

169+
.. _php-update-collation:
170+
171+
Collation
172+
`````````
173+
174+
.. include:: /includes/collation.rst
175+
169176
Return Value
170177
~~~~~~~~~~~~
171178

source/monitoring-logging/change-streams.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ can set in the array:
174174
| This option is mutually exclusive with ``startAfter`` and ``resumeAfter``.
175175

176176
* - ``collation``
177-
- | Sets the collation to use for the change stream cursor.
177+
- | Sets the collation to use for the change stream cursor. To learn more,
178+
see the :ref:`php-change-stream-collation` section of this page.
178179

179180
For a full list of ``watch()`` options, see `MongoDB\\Collection::watch()
180181
<{+api+}/method/MongoDBCollection-watch/>`__ in the API
@@ -255,6 +256,13 @@ output:
255256
:manual:`Change Streams with Document Pre- and Post-Images </changeStreams#change-streams-with-document-pre--and-post-images>`
256257
in the {+mdb-server+} manual.
257258

259+
.. _php-change-stream-collation:
260+
261+
Collation
262+
~~~~~~~~~
263+
264+
.. include:: /includes/collation.rst
265+
258266
Additional Information
259267
----------------------
260268

0 commit comments

Comments
 (0)