CoolCMS API

ProductHardDeletePlan
in package

FinalYes

Describes what happens on a hard delete of products ({@see \App\UI\Api\Eshop\Models\Managers\ProductHardDeleteManager::buildPlan()}).

Table of Contents

Properties

$assetIds  : array<string|int, mixed>
$commentThreadIds  : array<string|int, mixed>
$doomedSetIds  : array<string|int, mixed>
$productIds  : array<string|int, mixed>
$ratingThreadIds  : array<string|int, mixed>
$stockItemIds  : array<string|int, mixed>
$survivingBundleIds  : array<string|int, mixed>
$variantIds  : array<string|int, mixed>

Methods

__construct()  : mixed

Properties

Methods

__construct()

public __construct(array<int, int> $productIds, array<int, int> $variantIds, array<int, int> $stockItemIds, array<int, int> $doomedSetIds, array<int, int> $survivingBundleIds, array<int, int> $assetIds, array<int, int> $commentThreadIds, array<int, int> $ratingThreadIds) : mixed
Parameters
$productIds : array<int, int>

products being deleted

$variantIds : array<int, int>

their variants (removed with the product)

$stockItemIds : array<int, int>

stock items of these variants (the stock items themselves stay)

$doomedSetIds : array<int, int>

product sets that would be left empty and are therefore removed

$survivingBundleIds : array<int, int>

sets that stay but lose an item

$assetIds : array<int, int>

images of the removed sets (gallery + main photo)

$commentThreadIds : array<int, int>

comment threads of the removed sets

$ratingThreadIds : array<int, int>

rating threads of the removed sets

On this page

Search results