UpdateProductOptionsAction
extends AbstractAction
in package
Class UpdateProductOptionsAction
Table of Contents
- $textManager : TextManager
- $url : Url
- $factory : ProductOptionFactory
- $priceModifyService : ProductPriceConversionService
- $readService : ProductOptionReadService
- $requestParser : ProductOptionRequestParser
- $writeService : ProductOptionWriteService
- __construct() : mixed
- UpdateProductOptionsAction constructor.
- __invoke() : Response
- This method will be called in order to process the incoming request.
- handle() : Response
- Executes the business logic of the incoming request.
- initAbstractAction() : void
- Module action initialization.
- translate() : string
- Translates the section phrase.
Properties
$textManager
protected
TextManager
$textManager
$url
protected
Url
$url
$factory
private
ProductOptionFactory
$factory
$priceModifyService
private
ProductPriceConversionService
$priceModifyService
$readService
private
ProductOptionReadService
$readService
$requestParser
private
ProductOptionRequestParser
$requestParser
$writeService
private
ProductOptionWriteService
$writeService
Methods
__construct()
UpdateProductOptionsAction constructor.
public
__construct(ProductOptionFactory $factory, ProductOptionReadService $readService, ProductOptionWriteService $writeService, ProductPriceConversionService $priceModifyService, ProductOptionRequestParser $requestParser) : mixed
Parameters
- $factory : ProductOptionFactory
- $readService : ProductOptionReadService
- $writeService : ProductOptionWriteService
- $priceModifyService : ProductPriceConversionService
- $requestParser : ProductOptionRequestParser
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()
Executes the business logic of the incoming request.
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 —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