DeleteServiceDeleterDatabase
in package
implements
DeleteServiceDeleterInterface
Class DeleteServiceDeleterDatabase
Interfaces, Classes and Traits
- DeleteServiceDeleterInterface
- Interface DeleteServiceDeleterInterface
Table of Contents
- IMAGE_LIST_ATTRIBUTES_TABLE_NAME = 'product_image_list_attribute'
- IMAGE_LIST_COMBINATION_TABLE_NAME = 'product_image_list_combi'
- IMAGE_LIST_IDENTIFIER = "product_image_list_id"
- IMAGE_LIST_IMAGE_IDENTIFIER = "product_image_list_image_id"
- IMAGE_LIST_IMAGE_TABLE_NAME = "product_image_list_image"
- IMAGE_LIST_IMAGE_TEXT_TABLE_NAME = "product_image_list_image_text"
- IMAGE_LIST_TABLE_NAME = "product_image_list"
- $queryBuilder : CI_DB_query_builder
- __construct() : mixed
- DeleteServiceDeleterDatabase constructor.
- deleteImageById() : bool
- deleteImageByImageListId() : bool
- Delete multiple images by related ImageList id
- deleteImageListById() : bool
- deleteImageListCombiAssignment() : void
- deleteImageListRelationsById() : void
- Unlink image list from any attribute or combination
- deleteImageTextByImageId() : bool
- deleteImageTextByImageListId() : bool
- getImageListUsageCountForAttributes() : int
- getImageListUsageCountForCombinations() : int
- getImageListUsageCount() : int
- getModifierIdentifierByType() : string
- concatQuery() : string
Constants
IMAGE_LIST_ATTRIBUTES_TABLE_NAME
protected
mixed
IMAGE_LIST_ATTRIBUTES_TABLE_NAME
= 'product_image_list_attribute'
IMAGE_LIST_COMBINATION_TABLE_NAME
protected
mixed
IMAGE_LIST_COMBINATION_TABLE_NAME
= 'product_image_list_combi'
IMAGE_LIST_IDENTIFIER
protected
mixed
IMAGE_LIST_IDENTIFIER
= "product_image_list_id"
IMAGE_LIST_IMAGE_IDENTIFIER
protected
mixed
IMAGE_LIST_IMAGE_IDENTIFIER
= "product_image_list_image_id"
IMAGE_LIST_IMAGE_TABLE_NAME
protected
mixed
IMAGE_LIST_IMAGE_TABLE_NAME
= "product_image_list_image"
IMAGE_LIST_IMAGE_TEXT_TABLE_NAME
protected
mixed
IMAGE_LIST_IMAGE_TEXT_TABLE_NAME
= "product_image_list_image_text"
IMAGE_LIST_TABLE_NAME
protected
mixed
IMAGE_LIST_TABLE_NAME
= "product_image_list"
Properties
$queryBuilder
private
CI_DB_query_builder
$queryBuilder
Methods
__construct()
DeleteServiceDeleterDatabase constructor.
public
__construct(CI_DB_query_builder $query_builder) : mixed
Parameters
- $query_builder : CI_DB_query_builder
Return values
mixed —deleteImageById()
public
deleteImageById(int ...$ids) : bool
Parameters
- $ids : int
Tags
Return values
bool —deleteImageByImageListId()
Delete multiple images by related ImageList id
public
deleteImageByImageListId(int $id) : bool
Parameters
- $id : int
Tags
Return values
bool —deleteImageListById()
public
deleteImageListById(int $id) : bool
Parameters
- $id : int
Tags
Return values
bool —deleteImageListCombiAssignment()
public
deleteImageListCombiAssignment(int $combisId) : void
Parameters
- $combisId : int
Tags
Return values
void —deleteImageListRelationsById()
Unlink image list from any attribute or combination
public
deleteImageListRelationsById(int $listId) : void
Parameters
- $listId : int
Tags
Return values
void —deleteImageTextByImageId()
public
deleteImageTextByImageId(int ...$ids) : bool
Parameters
- $ids : int
Tags
Return values
bool —deleteImageTextByImageListId()
public
deleteImageTextByImageListId(int ...$imageListIds) : bool
Parameters
- $imageListIds : int
Tags
Return values
bool —getImageListUsageCountForAttributes()
public
getImageListUsageCountForAttributes(int $listId, int|null $againstId) : int
Parameters
- $listId : int
- $againstId : int|null
Tags
Return values
int —getImageListUsageCountForCombinations()
public
getImageListUsageCountForCombinations(int $listId, int|null $againstId) : int
Parameters
- $listId : int
- $againstId : int|null
Tags
Return values
int —getImageListUsageCount()
protected
getImageListUsageCount(int $listId, string $tableName, int|null $againstId) : int
Parameters
- $listId : int
- $tableName : string
- $againstId : int|null
Return values
int —getModifierIdentifierByType()
protected
getModifierIdentifierByType(string $type) : string
Parameters
- $type : string
Return values
string —concatQuery()
private
concatQuery(array<string|int, mixed> $array[, string $glue = " " ]) : string
Parameters
- $array : array<string|int, mixed>
- $glue : string = " "