You are here

public function MongoDBQueue::__construct in MongoDB 7

Start working with a queue.

Parameters

string $name: The name of the queue.

File

mongodb_queue/mongodb_queue.inc, line 27
Contains \MongoDBQueue.

Class

MongoDBQueue

Code

public function __construct($name) {

  // @todo: make sure that $name is a valid collection name?
  $this->collection = 'queue.' . $name;
}