Property | Type | Description | |
---|---|---|---|
$image | |||
$imageService | |||
$page | |||
$restrictionService |
Method | Description | |
---|---|---|
__construct ( |
ImageRepo constructor. | |
destroyImage ( |
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 ( |
Get the thumbnail for an image. | |
saveNew ( Symfony\Component\HttpFoundation\File\UploadedFile $uploadFile, string $type, integer $uploadedTo ) : |
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 ( |
Update the details of an image via an array of properties. |
Method | Description | |
---|---|---|
loadThumbs ( |
Load thumbnails onto an image object. | |
returnPaginated ( $query, integer $page, integer $pageSize = 24 ) : array | Execute a paginated query, returning in a standard format. |
public __construct ( |
||
$image | ||
$imageService | ||
$permissionService | ||
$page |
public destroyImage ( |
||
$image | ||
return | boolean |
public updateImageDetails ( |
||
$image | ||
$updateDetails | array | |
return |