Method |
Description |
|
__construct ( Image $image, ImageService $imageService, PermissionService $permissionService, Page $page ) |
ImageRepo constructor. |
|
destroyImage ( Image $image ) : boolean |
Destroys an Image object along with its files and thumbnails. |
|
getById ( $id ) : mixed |
Get an image with the given id. |
|
getGalleryFiltered ( integer $pagination, integer $pageSize = 24, $filter, $pageId ) : array |
Get gallery images with a particular filter criteria such as
being within the current book or page. |
|
getPaginatedByType ( string $type, integer $page, integer $pageSize = 24, boolean | integer $userFilter = false ) : array |
Gets a load images paginated, filtered by image type. |
|
getThumbnail ( Image $image, integer $width = 220, integer $height = 220, boolean $keepRatio = false ) : string |
Get the thumbnail for an image. |
|
saveNew ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadFile, string $type, integer $uploadedTo ) : Image |
Save a new image into storage and return the new image. |
|
searchPaginatedByType ( string $type, integer $page, integer $pageSize = 24, string $searchTerm ) : array |
Search for images by query, of a particular type. |
|
updateImageDetails ( Image $image, array $updateDetails ) : Image |
Update the details of an image via an array of properties. |
|