MongoGridFS::__construct
(PECL mongo >=0.9.0)
MongoGridFS::__construct — Creates new file collections
Описание
public MongoGridFS::__construct
(
MongoDB $db
[,
string $prefix = "fs"
[,
mixed $chunks = "fs"
]] )
Use one argument to specify a prefix other than "fs":
$fs = new MongoGridFS($db, "myfiles");
uses myfiles.files and myfiles.chunks collections.
Список параметров
-
db
-
Database.
-
files
-
Optional collection name prefix.