public function getChunkCollection($refresh = false)
    {
        if ($refresh || !is_object($this->_chunkCollection)) {
            $this->_chunkCollection = Yii::createObject([
                'class' => 'yii\mongodb\Collection',
                'database' => $this->database,
                'name' => $this->getPrefix() . '.chunks'
            ]);
        }

        return $this->_chunkCollection;
    }
public function getChunkCollection($refresh = false)
    {
        if ($refresh || !is_object($this->_chunkCollection)) {
            $this->_chunkCollection = Yii::createObject([
                'class' => 'yii\mongodb\Collection',
                'database' => $this->database,
                'name' => $this->getPrefix() . '.chunks'
            ]);
        }

        return $this->_chunkCollection;
    }
public function getChunkCollection ( $ refresh = false ) { if ( $ refresh || ! is_object ( $ this -> _chunkCollection ) ) { $ this -> _chunkCollection = Yii :: createObject ( [ 'class' => 'yii\mongodb\Collection' , 'database' => $ this -> database , 'name' => $ this -> getPrefix ( ) . '.chunks' ] ) ; } return $ this -> _chunkCollection ; }
Returns the MongoDB collection for the file chunks.
@param bool $refresh whether to reload the collection instance even if it is found in the cache.
@return \yii\mongodb\Collection mongo collection instance.
Returns the MongoDB collection for the file chunks .