public storeImageVariationMetadata ( $user, $imageIdentifier, $width, $height ) |
public function storeImageVariationMetadata($user, $imageIdentifier, $width, $height)
{
try {
$this->getCollection()->insertOne(['added' => time(), 'user' => $user, 'imageIdentifier' => $imageIdentifier, 'width' => $width, 'height' => $height]);
} catch (MongoException $e) {
throw new DatabaseException('Unable to save image variation data', 500, $e);
}
return true;
}