CreateProductDownloadsAction
extends AbstractProductDownloadAction
in package
Class CreateProductDownloadsAction
Table of Contents
- SORT_ORDER_PROVISIONAL_VALUE = -1
- $textManager : TextManager
- $url : Url
- $connection : Connection
- $highestSortOrder : int
- $optionReadService : OptionReadService
- $parser : ProductDownloadRequestParser
- $priceModifyService : ProductPriceConversionService
- $readService : ProductDownloadReadService
- $validator : ProductDownloadRequestValidator
- $writeService : ProductDownloadWriteService
- __construct() : mixed
- CreateProductOptionsAction constructor.
- __invoke() : Response
- This method will be called in order to process the incoming request.
- handle() : Response
- initAbstractAction() : void
- Module action initialization.
- addDownloadDataToArray() : array<string|int, mixed>
- assignDownloadData() : void
- downloadProductOptionIds() : array<string|int, mixed>
- optionValueById() : OptionValue
- setConnection() : void
- sortOrderMustBeOverwritten() : bool
- translate() : string
- Translates the section phrase.
- applyOptionValueCustomization() : void
- determineHighestSortOrderValue() : mixed
- overwriteSortOrder() : array<string|int, array<string|int, mixed>>
Constants
SORT_ORDER_PROVISIONAL_VALUE
private
mixed
SORT_ORDER_PROVISIONAL_VALUE
= -1
Properties
$textManager
protected
TextManager
$textManager
$url
protected
Url
$url
$connection
private
Connection
$connection
$highestSortOrder
private
int
$highestSortOrder
$optionReadService
private
OptionReadService
$optionReadService
$parser
private
ProductDownloadRequestParser
$parser
$priceModifyService
private
ProductPriceConversionService
$priceModifyService
$readService
private
ProductDownloadReadService
$readService
$validator
private
ProductDownloadRequestValidator
$validator
$writeService
private
ProductDownloadWriteService
$writeService
Methods
__construct()
CreateProductOptionsAction constructor.
public
__construct(ProductDownloadRequestValidator $validator, ProductDownloadRequestParser $parser, ProductDownloadWriteService $writeService, ProductDownloadReadService $readService, Connection $connection, OptionReadService $optionReadService, ProductPriceConversionService $priceModifyService) : mixed
Parameters
- $validator : ProductDownloadRequestValidator
- $parser : ProductDownloadRequestParser
- $writeService : ProductDownloadWriteService
- $readService : ProductDownloadReadService
- $connection : Connection
- $optionReadService : OptionReadService
- $priceModifyService : ProductPriceConversionService
Return values
mixed —__invoke()
This method will be called in order to process the incoming request.
public
__invoke(Request $request, Response $response) : Response
Parameters
Return values
Response —handle()
public
handle(Request $request, Response $response) : Response
Parameters
Tags
Return values
Response —initAbstractAction()
Module action initialization.
public
initAbstractAction(Url $url, TextManager $textManager) : void
Parameters
- $url : Url
- $textManager : TextManager
Return values
void —addDownloadDataToArray()
protected
addDownloadDataToArray(array<string|int, mixed> $downloadOption) : array<string|int, mixed>
Parameters
- $downloadOption : array<string|int, mixed>
Return values
array<string|int, mixed> —assignDownloadData()
protected
assignDownloadData(int $downloadId, string $filePath, int $maxDays, int $maxCount) : void
Parameters
- $downloadId : int
- $filePath : string
- $maxDays : int
- $maxCount : int
Return values
void —downloadProductOptionIds()
protected
downloadProductOptionIds() : array<string|int, mixed>
Return values
array<string|int, mixed> —optionValueById()
protected
optionValueById(OptionAndOptionValueId $optionAndOptionValueId) : OptionValue
Parameters
- $optionAndOptionValueId : OptionAndOptionValueId
Tags
Return values
OptionValue —setConnection()
protected
setConnection(Connection $connection) : void
Parameters
- $connection : Connection
Return values
void —sortOrderMustBeOverwritten()
protected
sortOrderMustBeOverwritten(mixed ...$creationArguments) : bool
Parameters
- $creationArguments : mixed
Return values
bool —translate()
Translates the section phrase.
protected
translate(string $phrase, string $section[, int|null $languageId = null ]) : string
Parameters
- $phrase : string
- $section : string
- $languageId : int|null = null
Return values
string —applyOptionValueCustomization()
private
applyOptionValueCustomization(array<string|int, mixed> &$creationArguments) : void
Parameters
- $creationArguments : array<string|int, mixed>
Tags
Return values
void —determineHighestSortOrderValue()
private
determineHighestSortOrderValue(Request $request) : mixed
Parameters
- $request : Request
Return values
mixed —overwriteSortOrder()
private
overwriteSortOrder(mixed ...$creationArguments) : array<string|int, array<string|int, mixed>>
Parameters
- $creationArguments : mixed