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

Public Member Functions

 init ($pObj)
 
string main ()
 

Protected Member Functions

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

Protected Attributes

IconFactory $iconFactory
 
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 38 of file TranslationStatusController.php.

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 425 of file TranslationStatusController.php.

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

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 382 of file TranslationStatusController.php.

References $GLOBALS, TYPO3\CMS\Info\Controller\TranslationStatusController\getBackendUser(), and TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

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 485 of file TranslationStatusController.php.

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

◆ init()

TYPO3\CMS\Info\Controller\TranslationStatusController::init (   $pObj)

Init, called from parent object

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

Definition at line 63 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 ( )
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 457 of file TranslationStatusController.php.

References $GLOBALS, and TYPO3\CMS\Info\Controller\TranslationStatusController\getBackendUser().

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

◆ main()

◆ modMenu()

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

Returns the menu array

Returns
‪array

Definition at line 123 of file TranslationStatusController.php.

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

◆ renderL10nTable()

Member Data Documentation

◆ $iconFactory

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

Definition at line 43 of file TranslationStatusController.php.

◆ $id

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

Definition at line 56 of file TranslationStatusController.php.

◆ $pObj

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

Contains a reference to the parent calling object

Definition at line 51 of file TranslationStatusController.php.

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

◆ $siteLanguages

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

Definition at line 47 of file TranslationStatusController.php.