TranslationStatusController

Class for displaying translation status of pages in the tree in Web -> Info

Internal

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

$id

protected int $id

Value of the GET/POST var 'id'

Methods

main()

Main, called from parent object

public main(ServerRequestInterface $request) : string
Parameters
$request : ServerRequestInterface
Return values
string

Output HTML for the module.

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>
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

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) : 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.


        
On this page

Search results