ProductRepositoryDeleteHelper

Class ProductRepositoryDeleteHelper

package

Default

Methods

Removes product contents, if they are not duplicated.

productsContent(\IdType $productId, \CI_DB_query_builder $db, \ProductsContentFileStorage $productsContentFileStorage, \ResponsiveFileManagerConfigurationStorage $fileManagerStorage) : $this|\ProductRepositoryDeleteHelper

Arguments

$productId

\IdType

Product id of content to be removed.

$db

\CI_DB_query_builder

Query builder instance to access data.

$productsContentFileStorage

\ProductsContentFileStorage

Storage class for product contents.

$fileManagerStorage

\ResponsiveFileManagerConfigurationStorage

File manager configuration access.

Response

$this|\ProductRepositoryDeleteHelper

Same instance for chained method calls.

Removes property combination images.

propertyCombinationImages(\IdType $combinationId) : $this|\ProductRepositoryDeleteHelper

Arguments

$combinationId

\IdType

Combination id of images to be removed.

Response

$this|\ProductRepositoryDeleteHelper

Same instance for chained method calls.

Reset caches for categories and 'also_purchased', if cache is used.

resetCategoriesAndAlsoPurchasedCache() : $this|\ProductRepositoryDeleteHelper

Response

$this|\ProductRepositoryDeleteHelper

Same instance for chained method calls.