public function getFileCollection($prefix = 'fs', $refresh = false)
    {
        if ($refresh || !array_key_exists($prefix, $this->_fileCollections)) {
            $this->_fileCollections[$prefix] = $this->selectFileCollection($prefix);
        }

        return $this->_fileCollections[$prefix];
    }
public function getFileCollection($prefix = 'fs', $refresh = false)
    {
        if ($refresh || !array_key_exists($prefix, $this->_fileCollections)) {
            $this->_fileCollections[$prefix] = $this->selectFileCollection($prefix);
        }

        return $this->_fileCollections[$prefix];
    }
public function getFileCollection ( $ prefix = 'fs' , $ refresh = false ) { if ( $ refresh || ! array_key_exists ( $ prefix , $ this -> _fileCollections ) ) { $ this -> _fileCollections [ $ prefix ] = $ this -> selectFileCollection ( $ prefix ) ; } return $ this -> _fileCollections [ $ prefix ] ; }
Returns Mongo GridFS collection with given prefix.
@param string $prefix collection prefix.
@param bool $refresh whether to reload the collection instance even if it is found in the cache.
@return file\Collection Mongo GridFS collection.
Returns Mongo GridFS collection with given prefix .