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 $resource

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

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 $collection

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

mongodb\file\Download $filename

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

mongodb\file\Download $chunkIterator

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

mongodb\file\Download $document

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

mongodb\file\Cursor __set()

__set() public method PHP magic method, which is invoked on attempt of setting not existing property. It passes value to the inner iterator. public void __set ( $name, $value )$name string Field name. $value mixed Field value.