MongoDB
PHP Manual

MongoDB::getGridFS

(PECL mongo >=0.9.0)

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

Descrição

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

Parâmetros

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.

Valor Retornado

Returns a new gridfs object for this database.


MongoDB
PHP Manual