ImageManager
class ImageManager implements ImageManagerInterface, BasicEntityManagerInterface
Class ImageManager is injected as alligator.image_manager service. ImageManager handles the logic for managed entity.
Properties
| protected ImageRepository | $repository |
Methods
Find all images
Find all products images without thumbnails
Find images for provided array
Get image reference
Delete array of images
Delete array of images
Save to file and persist images
Edit array of images
Create references and delete array of images
Delete array of images
Find images for provided array of ids
Find all images for provided array of erp codes
Get repository instance for specific class
Details
at line 33
__construct(ImageRepository $repository)
ImageManager constructor.
at line 43
QueryBuilder
findAllImages()
Find all images
at line 52
array
findAllProductImages()
Find all products images without thumbnails
at line 63
QueryBuilder
getImagesFromGroup($array)
Find images for provided array
at line 74
mixed
findDBImage(Image $image)
Find image
at line 85
Image
getImageReference(int $id)
Get image reference
at line 94
deleteImagesByPk(array $images)
Delete array of images
at line 105
array
deleteImagesByObject(array $images)
Delete array of images
at line 133
ArrayCollection
saveImagesForBlogPost(ArrayCollection $images)
Save to file and persist images
at line 159
updateMultipleImages(array $array)
Edit array of images
at line 168
deleteImagesFromCatGallery(array $images)
Create references and delete array of images
at line 188
removeImagesFromCatGallery(array $images)
Delete array of images
at line 204
array
getImagesArray(array $imageIds)
Find images for provided array of ids
at line 215
array
getAllProductImagesIdsForRemove(array $erpImages)
Find all images for provided array of erp codes
at line 226
ObjectRepository|EntityRepository
getOtherRepository(string $class)
Get repository instance for specific class