ActionLabelList
extends AbstractAction
in package
Class AbstractAction
Table of Contents
- LOGGING_NAMESPACE = 'dhlreturns'
- $textManager : TextManager
- $url : Url
- $path : Path
- __construct() : mixed
- __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.
- buildLabelList() : array<string|int, mixed>
- translate() : string
- Translates the section phrase.
Constants
LOGGING_NAMESPACE
private
mixed
LOGGING_NAMESPACE
= 'dhlreturns'
Properties
$textManager
protected
TextManager
$textManager
$url
protected
Url
$url
$path
private
Path
$path
Methods
__construct()
public
__construct(Path $path) : mixed
Parameters
- $path : Path
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
Return values
Response —initAbstractAction()
Module action initialization.
public
initAbstractAction(Url $url, TextManager $textManager) : void
Parameters
- $url : Url
- $textManager : TextManager
Return values
void —buildLabelList()
protected
buildLabelList(int $orderId) : array<string|int, mixed>
Parameters
- $orderId : int
Return values
array<string|int, mixed> —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