PHP Class Imbo\EventListener\ImageVariations\Storage\GridFS
Valid parameters for this driver:
- (string) databaseName Name of the database. Defaults to 'imbo_imagevariation_storage'
- (string) server The server string to use when connecting to MongoDB. Defaults to
'mongodb://localhost:27017'
- (array) options Options to use when creating the Mongo client instance. Defaults to
['connect' => true, 'connectTimeoutMS' => 1000].
Afficher le fichier
Open project: imbo/imbo
Class Usage Examples
Méthodes publiques
Méthodes protégées
Méthode |
Description |
|
getGrid ( ) : MongoGridFS |
Get the grid instance |
|
getMongoClient ( ) : MongoClient |
Get the mongo client instance |
|
Method Details
__construct()
public méthode
public __construct ( array $params = null, MongoClient $client = null, MongoGridFS $grid = null ) |
$params |
array |
Parameters for the driver |
$client |
MongoClient |
Mongo client instance |
$grid |
MongoGridFS |
MongoGridFS instance |
deleteImageVariations()
public méthode
getGrid()
protected méthode
protected getGrid ( ) : MongoGridFS |
Résultat |
MongoGridFS |
|
getImageVariation()
public méthode
getMongoClient()
protected méthode
Get the mongo client instance
storeImageVariation()
public méthode