public function getFileCollection($prefix = 'fs', $refresh = false)
    {
        if (is_array($prefix)) {
            list ($dbName, $collectionPrefix) = $prefix;
            if (!isset($collectionPrefix)) {
                $collectionPrefix = 'fs';
            }

            return $this->getDatabase($dbName)->getFileCollection($collectionPrefix, $refresh);
        }
        return $this->getDatabase()->getFileCollection($prefix, $refresh);
    }
public function getFileCollection($prefix = 'fs', $refresh = false)
    {
        if (is_array($prefix)) {
            list ($dbName, $collectionPrefix) = $prefix;
            if (!isset($collectionPrefix)) {
                $collectionPrefix = 'fs';
            }

            return $this->getDatabase($dbName)->getFileCollection($collectionPrefix, $refresh);
        }
        return $this->getDatabase()->getFileCollection($prefix, $refresh);
    }
public function getFileCollection ( $ prefix = 'fs' , $ refresh = false ) { if ( is_array ( $ prefix ) ) { list ( $ dbName , $ collectionPrefix ) = $ prefix ; if ( ! isset ( $ collectionPrefix ) ) { $ collectionPrefix = 'fs' ; } return $ this -> getDatabase ( $ dbName ) -> getFileCollection ( $ collectionPrefix , $ refresh ) ; } return $ this -> getDatabase ( ) -> getFileCollection ( $ prefix , $ refresh ) ; }
Returns the MongoDB GridFS collection.
@param string|array $prefix collection prefix. If string considered as the prefix of the GridFS
collection inside the default database. If array - first element considered as the name of the database,
second - as prefix of the GridFS collection inside that database, if no second element present
default "fs" prefix will be used.
@param bool $refresh whether to reload the collection instance even if it is found in the cache.
@return file\Collection Mongo GridFS collection instance.
Returns the MongoDB GridFS collection .