You are here

public function MongoDebugCursor::__construct in MongoDB 7

Same name and namespace in other branches
  1. 6 mongodb.module \MongoDebugCursor::__construct()

Constructor.

Parameters

string $collection: The name of the collection on which the cursor applies.

See also

mongoDebugCollection::find()

File

./mongodb.module, line 216
Contains the main module connecting Drupal to MongoDB.

Class

MongoDebugCursor

Code

public function __construct($collection) {
  $this->collection = $collection;
}