yii\mongodb\file\Collection::getFileCollection PHP Метод

getFileCollection() публичный Метод

Returns the MongoDB collection for the files.
С версии: 2.1
public getFileCollection ( boolean $refresh = false ) : Collection
$refresh boolean whether to reload the collection instance even if it is found in the cache.
Результат yii\mongodb\Collection mongo collection instance.
    public function getFileCollection($refresh = false)
    {
        if ($refresh || !is_object($this->_fileCollection)) {
            $this->_fileCollection = Yii::createObject(['class' => 'yii\\mongodb\\Collection', 'database' => $this->database, 'name' => $this->name]);
        }
        return $this->_fileCollection;
    }