PHP 클래스 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].
저자: Christer Edvartsen ([email protected])
상속: implements Imbo\EventListener\ImageVariations\Database\DatabaseInterface
파일 보기 프로젝트 열기: imbo/imbo 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $params = null, MongoClient $client = null, MongoCollection $collection = null ) Class constructor
deleteImageVariations ( $user, $imageIdentifier, $width = null )
getBestMatch ( $user, $imageIdentifier, $width )
storeImageVariationMetadata ( $user, $imageIdentifier, $width, $height )

비공개 메소드들

메소드 설명
getCollection ( ) : MongoCollection Get the mongo collection
getMongoClient ( ) : MongoClient Get the mongo client instance

메소드 상세

__construct() 공개 메소드

Class constructor
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 deleteImageVariations ( $user, $imageIdentifier, $width = null )

getBestMatch() 공개 메소드

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

storeImageVariationMetadata() 공개 메소드

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