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].
Show file
Open project: imbo/imbo
Class Usage Examples
Public Methods
Protected Methods
Method |
Description |
|
getGrid ( ) : MongoGridFS |
Get the grid instance |
|
getMongoClient ( ) : MongoClient |
Get the mongo client instance |
|
Method Details
__construct()
public method
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 method
getGrid()
protected method
protected getGrid ( ) : MongoGridFS |
return |
MongoGridFS |
|
getImageVariation()
public method
getMongoClient()
protected method
Get the mongo client instance
storeImageVariation()
public method