Method | Description | |
---|---|---|
__construct ( array $params = null, MongoClient $client = null, MongoCollection $imageCollection = null, MongoCollection $shortUrlCollection = null ) | Class constructor | |
deleteImage ( $user, $imageIdentifier ) | ||
deleteMetadata ( $user, $imageIdentifier ) | ||
deleteShortUrls ( $user, $imageIdentifier, $shortUrlId = null ) | ||
getImageMimeType ( $user, $imageIdentifier ) | ||
getImageProperties ( $user, $imageIdentifier ) | ||
getImages ( array $users, |
||
getLastModified ( array $users, $imageIdentifier = null ) | ||
getMetadata ( $user, $imageIdentifier ) | ||
getNumBytes ( $user = null ) | ||
getNumImages ( $user = null ) | ||
getNumUsers ( ) | ||
getShortUrlId ( $user, $imageIdentifier, $extension = null, array $query = [] ) | ||
getShortUrlParams ( $shortUrlId ) | ||
getStatus ( ) | ||
imageExists ( $user, $imageIdentifier ) | ||
insertImage ( $user, $imageIdentifier, |
||
insertShortUrl ( $shortUrlId, $user, $imageIdentifier, $extension = null, array $query = [] ) | ||
load ( $user, $imageIdentifier, |
||
updateMetadata ( $user, $imageIdentifier, array $metadata ) |
Method | Description | |
---|---|---|
getCollection ( string $type ) : MongoCollection | Get the mongo collection instance | |
getImageCollection ( ) : MongoCollection | Fetch the image collection | |
getMongoClient ( ) : MongoClient | Get the mongo client instance | |
getShortUrlCollection ( ) : MongoCollection | Fetch the shortUrl collection |
public __construct ( array $params = null, MongoClient $client = null, MongoCollection $imageCollection = null, MongoCollection $shortUrlCollection = null ) | ||
$params | array | Parameters for the driver |
$client | MongoClient | MongoClient instance |
$imageCollection | MongoCollection | MongoCollection instance for the images |
$shortUrlCollection | MongoCollection | MongoCollection instance for the short URLs |
public deleteShortUrls ( $user, $imageIdentifier, $shortUrlId = null ) |
public getLastModified ( array $users, $imageIdentifier = null ) | ||
$users | array |
public getShortUrlId ( $user, $imageIdentifier, $extension = null, array $query = [] ) | ||
$query | array |
public insertImage ( $user, $imageIdentifier, |
||
$image |
public insertShortUrl ( $shortUrlId, $user, $imageIdentifier, $extension = null, array $query = [] ) | ||
$query | array |
public updateMetadata ( $user, $imageIdentifier, array $metadata ) | ||
$metadata | array |