Method |
Description |
|
deleteImage ( string $user, string $imageIdentifier ) : boolean |
Delete an image from the database |
|
deleteMetadata ( string $user, string $imageIdentifier ) : boolean |
Delete all metadata associated with an image |
|
deleteShortUrls ( string $user, string $imageIdentifier, string $shortUrlId = null ) : boolean |
Delete short URLs attached to a specific image, or a single short URL |
|
getImageMimeType ( string $user, string $imageIdentifier ) : string |
Get the mime type of an image |
|
getImageProperties ( string $user, string $imageIdentifier ) : array |
Fetch image properties from the database |
|
getImages ( array $users, Query $query, Images $model ) : array |
Get images based on some query parameters |
|
getLastModified ( array $users, string $imageIdentifier = null ) : DateTime |
Get the last modified timestamp for given users |
|
getMetadata ( string $user, string $imageIdentifier ) : array |
Get all metadata associated with an image |
|
getNumBytes ( string $user = null ) : integer |
Fetch the number of bytes stored, optionally filtered by a given user |
|
getNumImages ( string $user = null ) : integer |
Fetch the number of images, optionally filtered by a given user |
|
getNumUsers ( ) : integer |
Fetch the number of users which has one or more images |
|
getShortUrlId ( string $user, string $imageIdentifier, string $extension = null, array $query = [] ) : string | null |
Fetch the short URL identifier |
|
getShortUrlParams ( string $shortUrlId ) : array | null |
Fetch parameters for a short URL |
|
getStatus ( ) : boolean |
Get the current status of the database connection |
|
imageExists ( string $user, string $imageIdentifier ) : boolean |
Check if an image already exists |
|
insertImage ( string $user, string $imageIdentifier, Image $image ) : boolean |
Insert a new image |
|
insertShortUrl ( string $shortUrlId, string $user, string $imageIdentifier, string $extension = null, array $query = [] ) : boolean |
Insert a short URL |
|
load ( string $user, string $imageIdentifier, Image $image ) : boolean |
Load information from database into the image object |
|
updateMetadata ( string $user, string $imageIdentifier, array $metadata ) : boolean |
Edit metadata |
|