PHP Класс Imbo\EventListener\ImageVariations\Database\Mongo

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].
Автор: Christer Edvartsen ([email protected])
Наследование: implements Imbo\EventListener\ImageVariations\Database\DatabaseInterface
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( array $params = null, MongoDB\Client $client = null, MonboDB\Collection $collection = null ) Class constructor
deleteImageVariations ( $user, $imageIdentifier, $width = null )
getBestMatch ( $user, $imageIdentifier, $width )
storeImageVariationMetadata ( $user, $imageIdentifier, $width, $height )

Приватные методы

Метод Описание
getCollection ( ) : MonboDB\Collection Get the mongo collection
getMongoClient ( ) : MongoDB\Client Get the mongo client instance

Описание методов

__construct() публичный Метод

Class constructor
public __construct ( array $params = null, MongoDB\Client $client = null, MonboDB\Collection $collection = null )
$params array Parameters for the driver
$client MongoDB\Client MongoClient instance
$collection MonboDB\Collection MongoCollection instance for the image variation collection

deleteImageVariations() публичный Метод

public deleteImageVariations ( $user, $imageIdentifier, $width = null )

getBestMatch() публичный Метод

public getBestMatch ( $user, $imageIdentifier, $width )

storeImageVariationMetadata() публичный Метод

public storeImageVariationMetadata ( $user, $imageIdentifier, $width, $height )