MongoCollection
PHP Manual

MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__constructCreates a new collection

Описание

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

Параметри

MongoDB db

Parent database.

name

Name for this collection.

Връщани стойности

Returns a new collection object.

Грешки/Изключения

Throws InvalidArgumentException if the collection name is invalid.


MongoCollection
PHP Manual