mongodb\file\Collection getChunkCollection()

getChunkCollection() public method Returns the MongoDB collection for the file chunks. public yii\mongodb\Collection getChunkCollection ( $refresh = false )$refresh boolean Whether to reload the collection instance even if it is found in the cache. return yii\mongodb\Collection Mongo collection instance.

mongodb\file\Collection get()

get() public method Retrieves the file with given _id. public yii\mongodb\file\Download|null get ( $id )$id mixed _id of the file to find. return yii\mongodb\file\Download|null Found file, or null if file does not exist throws yii\mongodb\Exception on failure.

mongodb\file\Collection find()

find() public method Returns a cursor for the search results. In order to perform "find" queries use yii\mongodb\file\Query class. public yii\mongodb\file\Cursor find ( $condition = [], $fields = [], $options = [] )$condition array Query condition $fields array Fields to be selected $options array Query options (available since 2.1). return yii\mongodb\file\Cursor Cursor for the search results

mongodb\file\Collection ensureIndexes()

ensureIndexes() public method Makes sure that indexes, which are crucial for the file processing, exist at this collection and $chunkCollection. The check result is cached per collection instance. public $this ensureIndexes ( $force = false )$force boolean Whether to ignore internal collection instance cache. return $this Self reference.

mongodb\file\Collection drop()

drop() public method Drops this collection. public boolean drop ( )return boolean Whether the operation successful. throws yii\mongodb\Exception on failure.

mongodb\file\Collection delete()

delete() public method Deletes the file with given _id. public boolean delete ( $id )$id mixed _id of the file to find. return boolean Whether the operation was successful. throws yii\mongodb\Exception on failure.

mongodb\file\Collection createUpload()

createUpload() public method (available since version 2.1) Creates upload command. public yii\mongodb\file\Upload createUpload ( $options = [] )$options array Upload options. return yii\mongodb\file\Upload File upload instance.

mongodb\file\Collection createDownload()

createDownload() public method (available since version 2.1) Creates download command. public yii\mongodb\file\Download createDownload ( $document )$document array|\MongoDB\BSON\ObjectID File document ot be downloaded. return yii\mongodb\file\Download File download instance.

mongodb\file\Collection $prefix

$prefix public property Prefix of this file collection. public string getPrefix ( )public void setPrefix ( $prefix )

mongodb\file\Collection $fileCollection

$fileCollection public read-only property Mongo collection instance. public yii\mongodb\Collection getFileCollection ( $refresh = false )