MongoGridFSFile
MongoGridFSFile::getBytes
MongoGridFSFile
PHP Manual

# MongoGridfsFile::__construct

(PECL mongo >=0.9.0)

MongoGridfsFile::__construct — Create a new GridFS file

### Descrição

public MongoGridfsFile::__construct ( MongoGridFS `$gridfs` , array `$file` )

### Parâmetros

`gridfs`

  The parent MongoGridFS instance.

`file`

  A file from the database.

### Valor Retornado

Returns a new MongoGridFSFile.

MongoGridFSFile
MongoGridFSFile::getBytes
MongoGridFSFile
PHP Manual