phpDocumentor

ProductDownloadInserter Uses ProductDownloadFloatConverter

Class ProductDownloadInserter

Table of Contents

$connection  : Connection
__construct()  : mixed
ProductDownloadInserter constructor.
createMultipleProductDownloads()  : array<string|int, int>
createProductDownload()  : int
convertFloatToPositiveFloatAndPrefix()  : array<string|int, mixed>
convertPositiveFloatAndPrefixToFloat()  : float
insertImageListId()  : mixed
insertProductOption()  : int
productOptionExists()  : bool

Properties

Methods

__construct()

ProductDownloadInserter constructor.

public __construct(Connection $connection) : mixed
Parameters
$connection : Connection
Return values
mixed

createProductDownload()

public createProductDownload(ProductId $productId, OptionAndOptionValueId $optionAndOptionValueId, ImageListId $imageListId, OptionValueCustomization $optionValueCustomization, ProductDownloadStock $productDownloadStock, int $sortOrder) : int
Parameters
$productId : ProductId
$optionAndOptionValueId : OptionAndOptionValueId
$imageListId : ImageListId
$optionValueCustomization : OptionValueCustomization
$productDownloadStock : ProductDownloadStock
$sortOrder : int
Tags
throws
InsertionOfProductDownloadsFailedException
throws
ProductDownloadAlreadyExistsException
Return values
int

convertFloatToPositiveFloatAndPrefix()

protected convertFloatToPositiveFloatAndPrefix(float $value) : array<string|int, mixed>
Parameters
$value : float
Return values
array<string|int, mixed>

convertPositiveFloatAndPrefixToFloat()

protected convertPositiveFloatAndPrefixToFloat(string $prefix, float $value) : float
Parameters
$prefix : string
$value : float
Return values
float

Search results