PHP 인터페이스 Imbo\EventListener\ImageVariations\Database\DatabaseInterface

저자: Christer Edvartsen ([email protected])
파일 보기 프로젝트 열기: imbo/imbo 0 사용 예제들

공개 메소드들

메소드 설명
deleteImageVariations ( string $user, string $imageIdentifier, integer $width = null ) : boolean Remove all metadata about image variations for an image
getBestMatch ( string $user, string $imageIdentifier, integer $width ) : integer | null Fetch the best match of an image
storeImageVariationMetadata ( string $user, string $imageIdentifier, integer $width, integer $height ) : boolean Store an image variation

메소드 상세

deleteImageVariations() 공개 메소드

Remove all metadata about image variations for an image
public deleteImageVariations ( string $user, string $imageIdentifier, integer $width = null ) : boolean
$user string The user which the image belongs to
$imageIdentifier string The image identifier
$width integer Only delete the variation with this width
리턴 boolean

getBestMatch() 공개 메소드

Fetch the best match of an image
public getBestMatch ( string $user, string $imageIdentifier, integer $width ) : integer | null
$user string The user which the image belongs to
$imageIdentifier string The image identifier of the original
$width integer The width we want to resize the image to
리턴 integer | null Returns the closest width, or null

storeImageVariationMetadata() 공개 메소드

Store an image variation
public storeImageVariationMetadata ( string $user, string $imageIdentifier, integer $width, integer $height ) : boolean
$user string The user which the image belongs to
$imageIdentifier string The image identifier of the original
$width integer The width of the variation
$height integer The height of the variation
리턴 boolean