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