‪TYPO3CMS  ‪main
TYPO3\CMS\Info\Controller\TranslationStatusController Class Reference
Inheritance diagram for TYPO3\CMS\Info\Controller\TranslationStatusController:
TYPO3\CMS\Info\Controller\InfoModuleController

Public Member Functions

 handleRequest (ServerRequestInterface $request)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Info\Controller\InfoModuleController
 __construct (protected readonly IconFactory $iconFactory, protected readonly UriBuilder $uriBuilder, protected readonly ModuleProvider $moduleProvider, protected readonly PageRenderer $pageRenderer, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly EventDispatcherInterface $eventDispatcher,)
 

Protected Member Functions

 getTree ()
 
 getAllowedModuleOptions ()
 
string renderL10nTable (PageTreeView $tree, ServerRequestInterface $request)
 
array bool getLangStatus (int $pageId, int $langId)
 
int getContentElementCount (int $pageId, int $sysLang)
 
 initializeSiteLanguages (ServerRequestInterface $request)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Info\Controller\InfoModuleController
 init (ServerRequestInterface $request)
 
 getButtons ()
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

array $siteLanguages = []
 
int $currentDepth = 0
 
int $currentLanguageId = 0
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Info\Controller\InfoModuleController
ModuleInterface $currentModule
 
ModuleTemplate $view
 
int $id
 

Additional Inherited Members

- ‪Public Attributes inherited from ‪TYPO3\CMS\Info\Controller\InfoModuleController
array $pageinfo = []
 

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.

Member Function Documentation

◆ getAllowedModuleOptions()

TYPO3\CMS\Info\Controller\TranslationStatusController::getAllowedModuleOptions ( )
protected

◆ getContentElementCount()

int TYPO3\CMS\Info\Controller\TranslationStatusController::getContentElementCount ( int  $pageId,
int  $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 414 of file TranslationStatusController.php.

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

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

◆ getLangStatus()

array bool TYPO3\CMS\Info\Controller\TranslationStatusController::getLangStatus ( int  $pageId,
int  $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|bool translated pages record

Definition at line 371 of file TranslationStatusController.php.

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

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

◆ getTree()

◆ handleRequest()

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

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

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

◆ renderL10nTable()

string TYPO3\CMS\Info\Controller\TranslationStatusController::renderL10nTable ( PageTreeView  $tree,
ServerRequestInterface  $request 
)
protected

Member Data Documentation

◆ $currentDepth

int TYPO3\CMS\Info\Controller\TranslationStatusController::$currentDepth = 0
protected

Definition at line 48 of file TranslationStatusController.php.

◆ $currentLanguageId

int TYPO3\CMS\Info\Controller\TranslationStatusController::$currentLanguageId = 0
protected

Definition at line 49 of file TranslationStatusController.php.

◆ $siteLanguages

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

Definition at line 47 of file TranslationStatusController.php.