phpDocumentor

ProductRepositoryDeleter
in package
implements ProductRepositoryDeleterInterface

Class ProductRepositoryDeleter

Tags
category

System

subpackage

Repositories

Interfaces, Classes and Traits

ProductRepositoryDeleterInterface
Interface ProductRepositoryDeleterInterface

Table of Contents

$db  : CI_DB_query_builder
Database connection.
$deleteHelper  : ProductRepositoryDeleteHelper
__construct()  : mixed
ProductRepositoryDeleter constructor.
deleteById()  : ProductRepositoryDeleter
Removes a product by the given product id.
_removeAdditionalFieldRelationsByProductId()  : $this|ProductRepositoryDeleter
Removes related additional field records by the given product id.
_removeFeatureSetsByProductId()  : $this|ProductRepositoryDeleter
Removes related feature set records by the given product id.
_removePersonalOffersByCustomerStatusByProductId()  : $this|ProductRepositoryDeleter
Removes records from all dynamic personal_offer_by_customer_status_ tables by the given product id.
_removePropertiesByProductId()  : $this|ProductRepositoryDeleter
Removes related property records by the given product id.
_removeRecordsByProductId()  : $this|ProductRepositoryDeleter
Removes records by products id in all related tables.
_removeReviewsByProductId()  : $this|ProductRepositoryDeleter
Removes review records by the given product id.

Properties

Methods

_removePersonalOffersByCustomerStatusByProductId()

Removes records from all dynamic personal_offer_by_customer_status_ tables by the given product id.

protected _removePersonalOffersByCustomerStatusByProductId(IdType $productId) : $this|ProductRepositoryDeleter
Parameters
$productId : IdType

Product id of records to be removed.

Return values
$this|ProductRepositoryDeleter

Same instance for chained method calls.

Search results