Class ProductImageContainerRepository
Class ProductImageContainerRepository
- ProductImageContainerRepository implements ProductImageContainerRepositoryInterface
Package: Product\Repositories
Category: System
Located at Services/Core/Product/Repositories/ProductImageContainerRepository.inc.php
Category: System
Located at Services/Core/Product/Repositories/ProductImageContainerRepository.inc.php
Methods summary
public
__construct( CI_DB_query_builder $db, LanguageProviderInterface $languageProvider )
ProductImageContainerRepository constructor.
public
store( IdType $productId, ProductImageContainerInterface $imageContainer )
: ProductImageContainerRepository
Stores the product image container.
public
getByProductId( IdType $productId )
: ProductImageContainerInterface
Returns a product image container based on the product ID given.
public
deleteByProductId( IdType $productId )
: ProductImageContainerRepository
Deletes a product image container based on the product ID given.
protected
_saveAdditionalImagesAltText( ProductImageContainerInterface $imageContainer, IdType $productId )
Saves alternative texts for additional images.
protected
_savePrimaryImageAltText( ProductImageContainerInterface $imageContainer, IdType $productId )
Saves alternative texts for the primary image.
protected
_getPrimaryImageAltText( ProductImageInterface $primaryImage, IdType $productId )
Sets alternative texts for the primary image provided.
protected
_getAdditionalImagesAltText( ProductImageInterface $additionalImage, IdType $productId, IdType $imageId )
Sets the alternative texts for an additional image.
protected
_queryPrimaryImage( IdType $productId )
: array
Perform database query to get primary image.
protected
_queryAdditionalImages( IdType $productId )
: array
Perform database query to get additional images.