MongoCommandCursor
PHP Manual

MongoCommandCursor::__construct

(No version information available, might only be in Git)

MongoCommandCursor::__constructCreate a new command cursor

Description

public MongoCommandCursor::__construct ( MongoClient $connection , string $ns [, array $command = array() ] )

Users are not supposed to create a MongoCommandCursor manually, but instead use MongoCollection::commandCursor().

Parameters

connection

Database connection.

ns

Full name of database and collection.

command

Database command.

Return Values

Returns the new cursor.


MongoCommandCursor
PHP Manual