TranslationStatusController extends InfoModuleController
Class for displaying translation status of pages in the tree in Web -> Info
This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.
Attributes
- #[AsController]
Table of Contents
Properties
- $pageinfo : array<string|int, mixed>
- $currentDepth : int
- $currentLanguageId : int
- $currentModule : ModuleInterface
- $eventDispatcher : EventDispatcherInterface
- $iconFactory : IconFactory
- $id : int
- Value of the GET/POST var 'id' = the current page ID
- $moduleProvider : ModuleProvider
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageRenderer : PageRenderer
- $siteLanguages : array<string|int, SiteLanguage>
- $uriBuilder : UriBuilder
- $view : ModuleTemplate|null
Methods
- __construct() : mixed
- handleRequest() : ResponseInterface
- Main action, should never be called, but works as a fallback if e.g. no submodule is accessible
- getAllowedModuleOptions() : array<string|int, mixed>
- getBackendUser() : BackendUserAuthentication
- getButtons() : void
- Create the panel of buttons for submitting the form or otherwise perform operations.
- getContentElementCount() : int
- Counting content elements for a single language on a page.
- getLangStatus() : array<string|int, mixed>|bool
- Get an alternative language record for a specific page / language
- getLanguageService() : LanguageService
- getTree() : PageTreeView
- init() : void
- Initializes the backend module by setting internal variables, initializing the menu.
- initializeSiteLanguages() : void
- Since the controller does not access the current request yet, we'll do it "old school" to fetch the Site based on the current ID.
- renderL10nTable() : string
- Rendering the localization information table.
Properties
$pageinfo
public
array<string|int, mixed>
$pageinfo
= []
$currentDepth
protected
int
$currentDepth
= 0
$currentLanguageId
protected
int
$currentLanguageId
= 0
$currentModule
protected
ModuleInterface
$currentModule
$eventDispatcher read-only
protected
EventDispatcherInterface
$eventDispatcher
$iconFactory read-only
protected
IconFactory
$iconFactory
$id
Value of the GET/POST var 'id' = the current page ID
protected
int
$id
$moduleProvider read-only
protected
ModuleProvider
$moduleProvider
$moduleTemplateFactory read-only
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageRenderer read-only
protected
PageRenderer
$pageRenderer
$siteLanguages
protected
array<string|int, SiteLanguage>
$siteLanguages
= []
$uriBuilder read-only
protected
UriBuilder
$uriBuilder
$view
protected
ModuleTemplate|null
$view
Methods
__construct()
public
__construct(IconFactory $iconFactory, UriBuilder $uriBuilder, ModuleProvider $moduleProvider, PageRenderer $pageRenderer, ModuleTemplateFactory $moduleTemplateFactory, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
- $moduleProvider : ModuleProvider
- $pageRenderer : PageRenderer
- $moduleTemplateFactory : ModuleTemplateFactory
- $eventDispatcher : EventDispatcherInterface
handleRequest()
Main action, should never be called, but works as a fallback if e.g. no submodule is accessible
public
handleRequest(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
Return values
ResponseInterfacegetAllowedModuleOptions()
protected
getAllowedModuleOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getBackendUser()
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetButtons()
Create the panel of buttons for submitting the form or otherwise perform operations.
protected
getButtons() : void
getContentElementCount()
Counting content elements for a single language on a page.
protected
getContentElementCount(int $pageId, int $sysLang) : int
Parameters
- $pageId : int
-
Page id to select for.
- $sysLang : int
-
Sys language uid
Return values
int —Number of content elements from the PID where the language is set to a certain value.
getLangStatus()
Get an alternative language record for a specific page / language
protected
getLangStatus(int $pageId, int $langId) : array<string|int, mixed>|bool
Parameters
- $pageId : int
-
Page ID to look up for.
- $langId : int
-
Language UID to select for.
Return values
array<string|int, mixed>|bool —translated pages record
getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetTree()
protected
getTree() : PageTreeView
Return values
PageTreeViewinit()
Initializes the backend module by setting internal variables, initializing the menu.
protected
init(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
initializeSiteLanguages()
Since the controller does not access the current request yet, we'll do it "old school" to fetch the Site based on the current ID.
protected
initializeSiteLanguages(ServerRequestInterface $request) : void
Parameters
- $request : ServerRequestInterface
renderL10nTable()
Rendering the localization information table.
protected
renderL10nTable(PageTreeView $tree, ServerRequestInterface $request) : string
Parameters
- $tree : PageTreeView
-
The Page tree data
- $request : ServerRequestInterface
Return values
string —HTML for the localization information table.