phpDocumentor

ProductImageContainerRepository
in package
implements ProductImageContainerRepositoryInterface

Class ProductImageContainerRepository

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

ProductImageContainerRepositoryInterface
Interface ProductImageContainerRepositoryInterface

Table of Contents

$db  : CI_DB_query_builder
Database connection.
$languageProvider  : LanguageProviderInterface
Used for fetching the language data.
__construct()  : mixed
ProductImageContainerRepository constructor.
deleteByProductId()  : ProductImageContainerRepository
Deletes a product image container based on the product ID given.
getByProductId()  : ProductImageContainerInterface
Returns a product image container based on the product ID given.
store()  : ProductImageContainerRepository
Stores the product image container.
_getAdditionalImagesAltText()  : mixed
Sets the alternative texts for an additional image.
_getPrimaryImageAltText()  : mixed
Sets alternative texts for the primary image provided.
_queryAdditionalImages()  : array<string|int, mixed>
Perform database query to get additional images.
_queryPrimaryImage()  : array<string|int, mixed>
Perform database query to get primary image.
_saveAdditionalImagesAltText()  : mixed
Saves alternative texts for additional images.
_savePrimaryImageAltText()  : mixed
Saves alternative texts for the primary image.

Properties

Methods

_queryAdditionalImages()

Perform database query to get additional images.

protected _queryAdditionalImages(IdType $productId) : array<string|int, mixed>
Parameters
$productId : IdType

Product ID.

Return values
array<string|int, mixed>

Result.

_queryPrimaryImage()

Perform database query to get primary image.

protected _queryPrimaryImage(IdType $productId) : array<string|int, mixed>
Parameters
$productId : IdType

Product ID.

Return values
array<string|int, mixed>

Result.

Search results