phpDocumentor

ImageListWriter

Class ImageListWriter

Table of Contents

$connection  : Connection
$imagesDirectory  : OriginalImagesDirectory
$languageCodeToIdMap  : array<string|int, mixed>
__construct()  : mixed
ImageListReader constructor.
createImageList()  : int
Creates an empty image list.
createMultipleImageLists()  : array<string|int, int>
Creates multiple empty image list.
deleteImageLists()  : void
Deletes one or more existing image lists.
storeImageLists()  : void
Stores one or more existing image lists.
addImages()  : void
deleteImageFromFilesystem()  : void
Removes an image from the filesystem
getImageIdByRelativePathAndListId()  : int
getLanguageIdFromLanguageCode()  : int
imageIsNotUsedInProductsOrLists()  : string|null
Determines if an image is not used in another product or list
removeImages()  : array<string|int, mixed>
updateImageListName()  : void
updateImages()  : void

Properties

$languageCodeToIdMap

private array<string|int, mixed> $languageCodeToIdMap = []

Methods

deleteImageFromFilesystem()

Removes an image from the filesystem

private deleteImageFromFilesystem(string $absolutePath) : void
Parameters
$absolutePath : string
Return values
void

getLanguageIdFromLanguageCode()

private getLanguageIdFromLanguageCode(string $code) : int
Parameters
$code : string
Return values
int

imageIsNotUsedInProductsOrLists()

Determines if an image is not used in another product or list

private imageIsNotUsedInProductsOrLists(string $relativePath) : string|null
Parameters
$relativePath : string
Return values
string|null

returns relativePath if it is no longer used and null if it is

removeImages()

private removeImages(ImageList $imageList) : array<string|int, mixed>
Parameters
$imageList : ImageList
Return values
array<string|int, mixed>

Search results