Method | Description | |
---|---|---|
__construct ( |
Constructs a readable GridFS stream. | |
close ( ) | ||
downloadNumBytes ( integer $numBytes ) : string | Read bytes from the stream. | |
downloadToStream ( resource $destination ) | Writes the contents of this GridFS file to a writable stream. | |
getFile ( ) | ||
getId ( ) | ||
getSize ( ) | ||
isEOF ( ) |
Method | Description | |
---|---|---|
advanceChunks ( ) | ||
initEmptyBuffer ( ) |
public __construct ( |
||
$collectionWrapper | GridFS collection wrapper | |
$file | stdClass | GridFS file document |
public downloadNumBytes ( integer $numBytes ) : string | ||
$numBytes | integer | Number of bytes to read |
return | string |
public downloadToStream ( resource $destination ) | ||
$destination | resource | Writable stream |