GetAvailableWidgets
extends AbstractAction
in package
Class AbstractAction
Tags
Table of Contents
- FALLBACK_LANGUAGE_CODE = "de"
- $textManager : TextManager
- $url : Url
- $languageCode : string
- $languageService : LanguageService
- $service : StatisticsOverviewService
- $userPreferences : UserPreferences
- __construct() : mixed
- 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.
Constants
FALLBACK_LANGUAGE_CODE
private
mixed
FALLBACK_LANGUAGE_CODE
= "de"
Properties
$textManager
protected
TextManager
$textManager
$url
protected
Url
$url
$languageCode
private
string
$languageCode
$languageService
private
LanguageService
$languageService
$service
private
StatisticsOverviewService
$service
$userPreferences
private
UserPreferences
$userPreferences
Methods
__construct()
Constructor.
public
__construct(StatisticsOverviewService $service, LanguageService $languageService, UserPreferences $userPreferences) : mixed
Parameters
- $service : StatisticsOverviewService
- $languageService : LanguageService
- $userPreferences : UserPreferences
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