Method | Description | |
---|---|---|
__construct ( array $params = null, MongoDB\Client $client = null, MongoDB\Collection $imageCollection = null, MongoDB\Collection $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 ) : MongoDB\Collection | Get the mongo collection instance | |
getImageCollection ( ) : MongoDB\Collection | Fetch the image collection | |
getMongoClient ( ) : MongoDB\Client | Get the mongo client instance | |
getShortUrlCollection ( ) : MongoDB\Collection | Fetch the shortUrl collection |
public __construct ( array $params = null, MongoDB\Client $client = null, MongoDB\Collection $imageCollection = null, MongoDB\Collection $shortUrlCollection = null, |
||
$params | array | Parameters for the driver |
$client | MongoDB\Client | MongoClient instance |
$imageCollection | MongoDB\Collection | MongoCollection instance for the images |
$shortUrlCollection | MongoDB\Collection | MongoCollection instance for the short URLs |
$bsonToArray | Helper to recursively convert documents to arrays |
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 |