TranslationStatusController
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.
Table of Contents
Properties
- $iconFactory : IconFactory
- $id : int
- $pObj : InfoModuleController
- $siteLanguages : array<string|int, SiteLanguage>
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- init() : mixed
- Init, called from parent object
- main() : string
- Main, called from parent object
- getBackendUser() : BackendUserAuthentication
- Returns the current BE user.
- getContentElementCount() : int
- Counting content elements for a single language on a page.
- getLangStatus() : array<string|int, mixed>
- Get an alternative language record for a specific page / language
- getLanguageService() : LanguageService
- getPageRenderer() : PageRenderer
- getTree() : PageTreeView
- initializeSiteLanguages() : mixed
- 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.
- modMenu() : array<string|int, mixed>
- Returns the menu array
- renderL10nTable() : string
- Rendering the localization information table.
Properties
$iconFactory
protected
IconFactory
$iconFactory
$id
protected
int
$id
Value of the GET/POST var 'id'
$pObj
protected
InfoModuleController
$pObj
Contains a reference to the parent calling object
$siteLanguages
protected
array<string|int, SiteLanguage>
$siteLanguages
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(IconFactory $iconFactory, UriBuilder $uriBuilder) : mixed
Parameters
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
init()
Init, called from parent object
public
init(InfoModuleController $pObj, ServerRequestInterface $request) : mixed
Parameters
- $pObj : InfoModuleController
-
A reference to the parent (calling) object
- $request : ServerRequestInterface
main()
Main, called from parent object
public
main(ServerRequestInterface $request) : string
Parameters
- $request : ServerRequestInterface
Return values
string —Output HTML for the module.
getBackendUser()
Returns the current BE user.
protected
getBackendUser() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetContentElementCount()
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>
Parameters
- $pageId : int
-
Page ID to look up for.
- $langId : int
-
Language UID to select for.
Return values
array<string|int, mixed> —translated pages record
getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetPageRenderer()
protected
getPageRenderer() : PageRenderer
Return values
PageRenderergetTree()
protected
getTree() : PageTreeView
Return values
PageTreeViewinitializeSiteLanguages()
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) : mixed
Parameters
- $request : ServerRequestInterface
modMenu()
Returns the menu array
protected
modMenu() : array<string|int, mixed>
Return values
array<string|int, mixed>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.