Skip to content

Commit a1eb7f6

Browse files
committed
PHPLIB-258: Accessors for GridFS files and chunks collections
1 parent 541ce64 commit a1eb7f6

File tree

3 files changed

+60
-0
lines changed

3 files changed

+60
-0
lines changed

source/reference/class/MongoDBGridFSBucket.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ Methods
4242
/reference/method/MongoDBGridFSBucket-find
4343
/reference/method/MongoDBGridFSBucket-findOne
4444
/reference/method/MongoDBGridFSBucket-getBucketName
45+
/reference/method/MongoDBGridFSBucket-getChunksCollection
4546
/reference/method/MongoDBGridFSBucket-getChunkSizeBytes
4647
/reference/method/MongoDBGridFSBucket-getDatabaseName
4748
/reference/method/MongoDBGridFSBucket-getFileDocumentForStream
4849
/reference/method/MongoDBGridFSBucket-getFileIdForStream
50+
/reference/method/MongoDBGridFSBucket-getFilesCollection
4951
/reference/method/MongoDBGridFSBucket-getReadConcern
5052
/reference/method/MongoDBGridFSBucket-getReadPreference
5153
/reference/method/MongoDBGridFSBucket-getTypeMap
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
==============================================
2+
MongoDB\\GridFS\\Bucket::getChunksCollection()
3+
==============================================
4+
5+
.. default-domain:: mongodb
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
Definition
14+
----------
15+
16+
.. phpmethod:: MongoDB\\GridFS\\Bucket::getChunksCollection()
17+
18+
Returns the chunks collection used by the bucket.
19+
20+
.. code-block:: php
21+
22+
function getChunksCollection(): MongoDB\Collection
23+
24+
Return Values
25+
-------------
26+
27+
A :phpclass:`MongoDB\\Collection` object for the chunks collection.
28+
29+
.. todo: add examples
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
=============================================
2+
MongoDB\\GridFS\\Bucket::getFilesCollection()
3+
=============================================
4+
5+
.. default-domain:: mongodb
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 1
11+
:class: singlecol
12+
13+
Definition
14+
----------
15+
16+
.. phpmethod:: MongoDB\\GridFS\\Bucket::getFilesCollection()
17+
18+
Returns the files collection used by the bucket.
19+
20+
.. code-block:: php
21+
22+
function getFilesCollection(): MongoDB\Collection
23+
24+
Return Values
25+
-------------
26+
27+
A :phpclass:`MongoDB\\Collection` object for the files collection.
28+
29+
.. todo: add examples

0 commit comments

Comments
 (0)