MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__constructCreates a new collection

Açıklama

public MongoCollection::__construct ( MongoDB $db , string $name )

Değiştirgeler

MongoDB db

Parent database.

name

Name for this collection.

Dönen Değerler

Returns a new collection object.

Hatalar/İstisnalar

Throws default exception if the collection name is invalid.