PHP Class Imbo\EventListener\ImageVariations\Database\MongoDB
Valid parameters for this driver:
- (string) databaseName Name of the database. Defaults to 'imbo'
- (string) server The server string to use when connecting to MongoDB. Defaults to
'mongodb://localhost:27017'
- (array) options Options to use when creating the MongoClient instance. Defaults to
['connect' => true, 'connectTimeoutMS' => 1000].
Datei anzeigen
Open project: imbo/imbo
Class Usage Examples
Public Methods
Private Methods
Method |
Description |
|
getCollection ( ) : MongoCollection |
Get the mongo collection |
|
getMongoClient ( ) : MongoClient |
Get the mongo client instance |
|
Method Details
__construct()
public method
public __construct ( array $params = null, MongoClient $client = null, MongoCollection $collection = null ) |
$params |
array |
Parameters for the driver |
$client |
MongoClient |
MongoClient instance |
$collection |
MongoCollection |
MongoCollection instance for the image variation collection |
deleteImageVariations()
public method
getBestMatch()
public method