Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
2f63218a
Commit
2f63218a
authored
Apr 23, 2015
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-70: Add class-level docs to model iterators
parent
7191886d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
51 additions
and
0 deletions
+51
-0
CollectionInfoCommandIterator.php
src/Model/CollectionInfoCommandIterator.php
+11
-0
CollectionInfoIterator.php
src/Model/CollectionInfoIterator.php
+8
-0
CollectionInfoLegacyIterator.php
src/Model/CollectionInfoLegacyIterator.php
+14
-0
DatabaseInfoIterator.php
src/Model/DatabaseInfoIterator.php
+8
-0
DatabaseInfoLegacyIterator.php
src/Model/DatabaseInfoLegacyIterator.php
+10
-0
No files found.
src/Model/CollectionInfoCommandIterator.php
View file @
2f63218a
...
...
@@ -4,6 +4,17 @@ namespace MongoDB\Model;
use
IteratorIterator
;
/**
* CollectionInfoIterator for listCollections command results.
*
* This iterator may be used to wrap a Cursor returned by the listCollections
* command.
*
* @internal
* @see MongoDB\Database::listCollections()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
* @see http://docs.mongodb.org/manual/reference/command/listCollections/
*/
class
CollectionInfoCommandIterator
extends
IteratorIterator
implements
CollectionInfoIterator
{
/**
...
...
src/Model/CollectionInfoIterator.php
View file @
2f63218a
...
...
@@ -4,6 +4,14 @@ namespace MongoDB\Model;
use
Iterator
;
/**
* CollectionInfoIterator interface.
*
* This iterator is used for enumerating collections in a database.
*
* @api
* @see MongoDB\Database::listCollections()
*/
interface
CollectionInfoIterator
extends
Iterator
{
/**
...
...
src/Model/CollectionInfoLegacyIterator.php
View file @
2f63218a
...
...
@@ -7,6 +7,20 @@ use Iterator;
use
IteratorIterator
;
use
Traversable
;
/**
* CollectionInfoIterator for legacy "system.namespaces" query results.
*
* This iterator may be used to wrap a Cursor returned for queries on the
* "system.namespaces" collection. It includes logic to filter out internal
* collections and modify the collection name to be consistent with results from
* the listCollections command.
*
* @internal
* @see MongoDB\Database::listCollections()
* @see https://github.com/mongodb/specifications/blob/master/source/enumerate-collections.rst
* @see http://docs.mongodb.org/manual/reference/command/listCollections/
* @see http://docs.mongodb.org/manual/reference/system-collections/
*/
class
CollectionInfoLegacyIterator
extends
FilterIterator
implements
CollectionInfoIterator
{
/**
...
...
src/Model/DatabaseInfoIterator.php
View file @
2f63218a
...
...
@@ -4,6 +4,14 @@ namespace MongoDB\Model;
use
Iterator
;
/**
* DatabaseInfoIterator interface.
*
* This iterator is used for enumerating databases on a server.
*
* @api
* @see MongoDB\Client::listDatabases()
*/
interface
DatabaseInfoIterator
extends
Iterator
{
/**
...
...
src/Model/DatabaseInfoLegacyIterator.php
View file @
2f63218a
...
...
@@ -2,6 +2,16 @@
namespace
MongoDB\Model
;
/**
* DatabaseInfoIterator for inline listDatabases command results.
*
* This iterator may be used to wrap the array returned within the listDatabases
* command's single-document result.
*
* @internal
* @see MongoDB\Client::listDatabases()
* @see http://docs.mongodb.org/manual/reference/command/listDatabases/
*/
class
DatabaseInfoLegacyIterator
implements
DatabaseInfoIterator
{
private
$databases
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment