MongoCollection::batchInsert
MongoCollection::count
MongoCollection
PHP Manual

# MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__construct — Creates a new collection

### Opis

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

### Parametry

MongoDB `db`

  Parent database.

`name`

  Name for this collection.

### Zwracane wartości

Returns a new collection object.

### Błędy/Wyjątki

Throws default exception if the collection name is invalid.

MongoCollection::batchInsert
MongoCollection::count
MongoCollection
PHP Manual