mongodb\file\Download getChunkIterator()

getChunkIterator() public method Returns iterator for the file chunks cursor. public Iterator getChunkIterator ( $refresh = false )$refresh boolean Whether to recreate iterator, if it is already exist. return Iterator Chuck cursor iterator.

mongodb\file\Download getChunkCursor()

getChunkCursor() public method Returns file chunks read cursor. public \MongoDB\Driver\Cursor getChunkCursor ( $refresh = false )$refresh boolean Whether to recreate cursor, if it is already exist. return \MongoDB\Driver\Cursor Chuck list cursor. throws yii\base\InvalidConfigException

mongodb\file\Download getBytes()

getBytes() public method Alias of toString() method. public string getBytes ( )return string File content.

mongodb\file\Download $size

$size public read-only property File size. public integer getSize ( )

mongodb\file\Download $resource

$resource public read-only property File stream resource. public resource getResource ( )

mongodb\file\Download $filename

$filename public read-only property File name. public string|null getFilename ( )

mongodb\file\Download $document

$document public property Document to be downloaded. public array getDocument ( )public void setDocument ( $document )

mongodb\file\Download $collection

$collection public property File collection to be used. public yii\mongodb\file\Collection $collection = null

mongodb\file\Download $chunkIterator

$chunkIterator public read-only property Chuck cursor iterator. public Iterator getChunkIterator ( $refresh = false )

mongodb\file\Download $chunkCursor

$chunkCursor public read-only property Chuck list cursor. public \MongoDB\Driver\Cursor getChunkCursor ( $refresh = false )