‪TYPO3CMS  11.5
TYPO3\CMS\Info\Controller\TranslationStatusController Class Reference

Public Member Functions

 __construct (IconFactory $iconFactory, UriBuilder $uriBuilder)
 
 init (InfoModuleController $pObj, ServerRequestInterface $request)
 
string main (ServerRequestInterface $request)
 

Protected Member Functions

 getTree ()
 
array modMenu ()
 
string renderL10nTable (PageTreeView $tree, ServerRequestInterface $request)
 
array getLangStatus ($pageId, $langId)
 
int getContentElementCount ($pageId, $sysLang)
 
 initializeSiteLanguages (ServerRequestInterface $request)
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 
PageRenderer getPageRenderer ()
 

Protected Attributes

IconFactory $iconFactory
 
UriBuilder $uriBuilder
 
SiteLanguage[] $siteLanguages
 
InfoModuleController $pObj
 
 $id
 

Detailed Description

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.

Definition at line 42 of file TranslationStatusController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Info\Controller\TranslationStatusController::__construct ( IconFactory  $iconFactory,
UriBuilder  $uriBuilder 
)

Member Function Documentation

◆ getBackendUser()

◆ getContentElementCount()

int TYPO3\CMS\Info\Controller\TranslationStatusController::getContentElementCount (   $pageId,
  $sysLang 
)
protected

Counting content elements for a single language on a page.

Parameters
int$pageId‪Page id to select for.
int$sysLang‪Sys language uid
Returns
‪int Number of content elements from the PID where the language is set to a certain value.

Definition at line 452 of file TranslationStatusController.php.

References TYPO3\CMS\Info\Controller\TranslationStatusController\getBackendUser(), and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Info\Controller\TranslationStatusController\renderL10nTable().

◆ getLangStatus()

array TYPO3\CMS\Info\Controller\TranslationStatusController::getLangStatus (   $pageId,
  $langId 
)
protected

Get an alternative language record for a specific page / language

Parameters
int$pageId‪Page ID to look up for.
int$langId‪Language UID to select for.
Returns
‪array translated pages record

Definition at line 409 of file TranslationStatusController.php.

References $GLOBALS, TYPO3\CMS\Info\Controller\TranslationStatusController\getBackendUser(), and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Info\Controller\TranslationStatusController\renderL10nTable().

◆ getLanguageService()

LanguageService TYPO3\CMS\Info\Controller\TranslationStatusController::getLanguageService ( )
protected

◆ getPageRenderer()

PageRenderer TYPO3\CMS\Info\Controller\TranslationStatusController::getPageRenderer ( )
protected
Returns
‪PageRenderer

Definition at line 512 of file TranslationStatusController.php.

Referenced by TYPO3\CMS\Info\Controller\TranslationStatusController\main().

◆ getTree()

◆ init()

TYPO3\CMS\Info\Controller\TranslationStatusController::init ( InfoModuleController  $pObj,
ServerRequestInterface  $request 
)

Init, called from parent object

Parameters
InfoModuleController$pObj‪A reference to the parent (calling) object

Definition at line 71 of file TranslationStatusController.php.

References TYPO3\CMS\Info\Controller\TranslationStatusController\$pObj, and TYPO3\CMS\Info\Controller\TranslationStatusController\initializeSiteLanguages().

◆ initializeSiteLanguages()

TYPO3\CMS\Info\Controller\TranslationStatusController::initializeSiteLanguages ( ServerRequestInterface  $request)
protected

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.

Definition at line 484 of file TranslationStatusController.php.

References TYPO3\CMS\Info\Controller\TranslationStatusController\getBackendUser().

Referenced by TYPO3\CMS\Info\Controller\TranslationStatusController\init().

◆ main()

string TYPO3\CMS\Info\Controller\TranslationStatusController::main ( ServerRequestInterface  $request)

◆ modMenu()

array TYPO3\CMS\Info\Controller\TranslationStatusController::modMenu ( )
protected

Returns the menu array

Returns
‪array

Definition at line 148 of file TranslationStatusController.php.

References TYPO3\CMS\Info\Controller\TranslationStatusController\getLanguageService().

◆ renderL10nTable()

Member Data Documentation

◆ $iconFactory

IconFactory TYPO3\CMS\Info\Controller\TranslationStatusController::$iconFactory
protected

◆ $id

TYPO3\CMS\Info\Controller\TranslationStatusController::$id
protected

◆ $pObj

InfoModuleController TYPO3\CMS\Info\Controller\TranslationStatusController::$pObj
protected

Contains a reference to the parent calling object

Definition at line 53 of file TranslationStatusController.php.

Referenced by TYPO3\CMS\Info\Controller\TranslationStatusController\init().

◆ $siteLanguages

SiteLanguage [] TYPO3\CMS\Info\Controller\TranslationStatusController::$siteLanguages
protected

Definition at line 49 of file TranslationStatusController.php.

◆ $uriBuilder

UriBuilder TYPO3\CMS\Info\Controller\TranslationStatusController::$uriBuilder
protected