MongoCollection
PHP Manual

MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__constructCreates a new collection

Descrição

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

Parâmetros

MongoDB db

Parent database.

name

Name for this collection.

Valor Retornado

Returns a new collection object.

Erros

Throws default exception if the collection name is invalid.


MongoCollection
PHP Manual