‪TYPO3CMS  9.5
TYPO3\CMS\Info\Controller\TranslationStatusController Class Reference
Inheritance diagram for TYPO3\CMS\Info\Controller\TranslationStatusController:
TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait TYPO3\CMS\Frontend\Controller\TranslationStatusController

Public Member Functions

 init ($pObj)
 
string main ()
 
array getSystemLanguages ()
 
 checkExtObj ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Compatibility\PublicPropertyDeprecationTrait
bool __isset (string $propertyName)
 
mixed __get (string $propertyName)
 
 __set (string $propertyName, $propertyValue)
 
 __unset (string $propertyName)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Core\Compatibility\PublicMethodDeprecationTrait
mixed __call (string $methodName, array $arguments)
 

Protected Member Functions

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

Protected Attributes

IconFactory $iconFactory
 
SiteLanguage[] $siteLanguages
 
InfoModuleController $pObj
 
 $id
 
 $extObj
 
 $localLangFile = ''
 
 $extClassConf
 
 $function_key = ''
 

Private Attributes

array $deprecatedPublicProperties
 
array $deprecatedPublicMethods
 

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

Member Function Documentation

◆ checkExtObj()

TYPO3\CMS\Info\Controller\TranslationStatusController::checkExtObj ( )

Called from InfoModuleController until deprecation removal in TYPO3 v10.0

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0.

Definition at line 555 of file TranslationStatusController.php.

References TYPO3\CMS\Backend\Utility\BackendUtility\getModuleData().

◆ extObjContent()

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

Calls the main function inside ANOTHER sub-submodule which might exist.

Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0.

Definition at line 570 of file TranslationStatusController.php.

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

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

References $GLOBALS, and TYPO3\CMS\Backend\Utility\BackendUtility\workspaceOL().

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

◆ getLanguageService()

◆ getPageRenderer()

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

Definition at line 598 of file TranslationStatusController.php.

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

◆ getSystemLanguages()

array TYPO3\CMS\Info\Controller\TranslationStatusController::getSystemLanguages ( )

Selects all system languages (from sys_language)

Returns
‪array System language records in an array.
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0

Definition at line 436 of file TranslationStatusController.php.

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

◆ init()

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

◆ initializeSiteLanguages()

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

Since the AbstractFunctionModule cannot access the current request yet, we'll do it "old school" to fetch the Site based on the current ID.

Definition at line 543 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 168 of file TranslationStatusController.php.

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

◆ renderL10nTable()

Member Data Documentation

◆ $deprecatedPublicMethods

array TYPO3\CMS\Info\Controller\TranslationStatusController::$deprecatedPublicMethods
private
Initial value:
= array(
'getContentElementCount' => 'Using TranslationStatusController::getContentElementCount() is deprecated and will not be possible anymore in TYPO3 v10.0.',
'getLangStatus' => 'Using TranslationStatusController::getLangStatus() is deprecated and will not be possible anymore in TYPO3 v10.0.',
'renderL10nTable' => 'Using TranslationStatusController::renderL10nTable() is deprecated and will not be possible anymore in TYPO3 v10.0.',
'modMenu' => 'Using TranslationStatusController::modMenu() is deprecated and will not be possible anymore in TYPO3 v10.0.',
'extObjContent' => 'Using TranslationStatusController::extObjContent() is deprecated, method will be removed in TYPO3 v10.0.',
)

Definition at line 54 of file TranslationStatusController.php.

◆ $deprecatedPublicProperties

array TYPO3\CMS\Info\Controller\TranslationStatusController::$deprecatedPublicProperties
private
Initial value:
= array(
'pObj' => 'Using TranslationStatusController::$pObj is deprecated and will not be possible anymore in TYPO3 v10.0.',
'function_key' => 'Using TranslationStatusController::function_key$ is deprecated, property will be removed in TYPO3 v10.0.',
'extClassConf' => 'Using TranslationStatusController::$extClassConf is deprecated, property will be removed in TYPO3 v10.0.',
'localLangFile' => 'Using TranslationStatusController::$localLangFile is deprecated, property will be removed in TYPO3 v10.0.',
'extObj' => 'Using TranslationStatusController::$extObj is deprecated, property will be removed in TYPO3 v10.0.',
)

Definition at line 44 of file TranslationStatusController.php.

◆ $extClassConf

TYPO3\CMS\Info\Controller\TranslationStatusController::$extClassConf
protected
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0.

Definition at line 92 of file TranslationStatusController.php.

◆ $extObj

TYPO3\CMS\Info\Controller\TranslationStatusController::$extObj
protected
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0.

Definition at line 82 of file TranslationStatusController.php.

◆ $function_key

TYPO3\CMS\Info\Controller\TranslationStatusController::$function_key = ''
protected
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0.

Definition at line 97 of file TranslationStatusController.php.

◆ $iconFactory

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

Definition at line 64 of file TranslationStatusController.php.

◆ $id

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

Definition at line 77 of file TranslationStatusController.php.

◆ $localLangFile

TYPO3\CMS\Info\Controller\TranslationStatusController::$localLangFile = ''
protected
Deprecated:
‪since TYPO3 v9, will be removed in TYPO3 v10.0.

Definition at line 87 of file TranslationStatusController.php.

◆ $pObj

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

Contains a reference to the parent calling object

Definition at line 72 of file TranslationStatusController.php.

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

◆ $siteLanguages

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

Definition at line 68 of file TranslationStatusController.php.