MongoCollection
PHP Manual

MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__constructCreates a new collection

Descrierea

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

Parametri

MongoDB db

Parent database.

name

Name for this collection.

Valorile întoarse

Returns a new collection object.

Erori/Excepții

Throws default exception if the collection name is invalid.


MongoCollection
PHP Manual