Removes product content data by the given product id.
_removeProductContentByProductId(\IdType $productId, \CI_DB_query_builder $db, \ProductsContentFileStorage $productsContentFileStorage, \ResponsiveFileManagerConfigurationStorage $fileManagerStorage) : $this
Arguments
$productId
\IdType
Product id of content data to be
removed.
$db
\CI_DB_query_builder
Query builder instance to access
data.
$fileManagerStorage
\ResponsiveFileManagerConfigurationStorage
File manager configuration access.
Response
$this
Removes product content description entries by the given product content id.
_removeProductContentDescriptionEntries(\CI_DB_query_builder $db, integer $pcId) : $this|\ProductRepositoryDeleteHelper
Arguments
$db
\CI_DB_query_builder
Database access instance.
$pcId
integer
Related product content id.
Response
$this|\ProductRepositoryDeleteHelper
Same instance for chained method calls.
Removes product content entries by the given product content id.
_removeProductContentEntries(\CI_DB_query_builder $db, integer $pcId) : $this|\ProductRepositoryDeleteHelper
Arguments
$db
\CI_DB_query_builder
Database access instance.
$pcId
integer
Id of product content record to be removed.
Response
$this|\ProductRepositoryDeleteHelper
Same instance for chained method calls.
Removes product content products entries by the given product id.
_removeProductContentProductsEntries(\CI_DB_query_builder $db, \IdType $productId) : $this|\ProductRepositoryDeleteHelper
Removes product content resource entries by the given product content description ids.
_removeProductContentResourceEntries(\CI_DB_query_builder $db, array $pcdIds) : $this|\ProductRepositoryDeleteHelper
Arguments
$db
\CI_DB_query_builder
Database access instance.
$pcdIds
array
Related product content description ids.
Response
$this|\ProductRepositoryDeleteHelper
Same instance for chained method calls.
Deletes unused product content files from storage.
_removeUnusedProductContentFiles(integer $productContentIdToBeRemoved, \CI_DB_query_builder $db, \ProductsContentFileStorage $productsContentFileStorage) : $this
Arguments
$productContentIdToBeRemoved
integer
Response
$this
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.
$fileManagerStorage
\ResponsiveFileManagerConfigurationStorage
File manager configuration access.
Response
$this|\ProductRepositoryDeleteHelper
Same instance for chained method calls.