MongoDB
PHP Manual

MongoDB::getGridFS

(PECL mongo >=0.9.0)

MongoDB::getGridFSFetches toolkit for dealing with files stored in this database

Описание

public MongoGridFS MongoDB::getGridFS ([ string $arg1= "fs" [, string $arg2= NULL ]] )

Список параметров

arg1

If the only argument, the prefix for the files and chunks collections. Otherwise, the name of the files collection.

arg2

Name of the chunks collection.

Возвращаемые значения

Returns a new gridfs object for this database.


MongoDB
PHP Manual