TranslationStatusController extends InfoModuleController

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

$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

$eventDispatcher read-only

protected EventDispatcherInterface $eventDispatcher

$id

Value of the GET/POST var 'id' = the current page ID

protected int $id

Methods

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
ResponseInterface

getAllowedModuleOptions()

protected getAllowedModuleOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

getButtons()

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

init()

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.


        
On this page

Search results