The MongoGridFSFile class

(PECL mongo >=0.9.0)

Introduction

A database file object.

Class synopsis

MongoGridFSFile {
/* Fields */
public array $file = null ;
protected MongoGridFS $gridfs = null ;
/* Methods */
public MongoGridfsFile::__construct(MongoGridFS $gridfs, array $file)
public getBytes(): string
public getFilename(): string
public getResource(): resource
public getSize(): int
public write(string $filename = null): int
}

Table of Contents