CreateOptionValuesAction
extends AbstractAction
in package
Class CreateOptionValuesAction
Table of Contents
- SORT_ORDER_PROVISIONAL_VALUE = -1
- $textManager : TextManager
- $url : Url
- $highestSortOrder : int
- $readService : OptionReadService
- $requestParser : OptionRequestParser
- $requestValidator : OptionRequestValidator
- $writeService : OptionWriteService
- __construct() : mixed
- CreateOptionValuesAction 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.
- sortOrderMustBeOverwritten() : bool
- translate() : string
- Translates the section phrase.
- determineHighestSortOrderValue() : mixed
- overwriteSortOrder() : ServerRequestInterface
Constants
SORT_ORDER_PROVISIONAL_VALUE
private
mixed
SORT_ORDER_PROVISIONAL_VALUE
= -1
Properties
$textManager
protected
TextManager
$textManager
$url
protected
Url
$url
$highestSortOrder
private
int
$highestSortOrder
$readService
private
OptionReadService
$readService
$requestParser
private
OptionRequestParser
$requestParser
$requestValidator
private
OptionRequestValidator
$requestValidator
$writeService
private
OptionWriteService
$writeService
Methods
__construct()
CreateOptionValuesAction constructor.
public
__construct(OptionRequestParser $requestParser, OptionRequestValidator $requestValidator, OptionReadService $readService, OptionWriteService $writeService) : mixed
Parameters
- $requestParser : OptionRequestParser
- $requestValidator : OptionRequestValidator
- $readService : OptionReadService
- $writeService : OptionWriteService
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 —sortOrderMustBeOverwritten()
protected
sortOrderMustBeOverwritten(ServerRequestInterface $request) : bool
Parameters
- $request : ServerRequestInterface
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 —determineHighestSortOrderValue()
private
determineHighestSortOrderValue(Option $option) : mixed
Parameters
- $option : Option
Return values
mixed —overwriteSortOrder()
private
overwriteSortOrder(ServerRequestInterface &$request) : ServerRequestInterface
Parameters
- $request : ServerRequestInterface