TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Frontend\Controller\TranslationStatusController Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\Controller\TranslationStatusController:
TYPO3\CMS\Backend\Module\AbstractFunctionModule tx_cms_webinfo_lang

Public Member Functions

 modMenu ()
 
 main ()
 
 renderL10nTable (&$tree)
 
 getSystemLanguages ()
 
 getLangStatus ($pageId, $langId)
 
 getContentElementCount ($pageId, $sysLang)
 
- Public Member Functions inherited from TYPO3\CMS\Backend\Module\AbstractFunctionModule
 init (&$pObj, $conf)
 
 handleExternalFunctionValue ()
 
 incLocalLang ()
 
 checkExtObj ()
 
 extObjContent ()
 
 modMenu ()
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Backend\Module\AbstractFunctionModule
 $pObj
 
 $thisPath = ''
 
 $localLangFile = 'locallang.php'
 
 $extClassConf
 
 $function_key = ''
 

Detailed Description

Class for displaying translation status of pages in the tree.

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 25 of file TranslationStatusController.php.

Member Function Documentation

◆ getContentElementCount()

TYPO3\CMS\Frontend\Controller\TranslationStatusController::getContentElementCount (   $pageId,
  $sysLang 
)

Counting content elements for a single language on a page.

Parameters
integer$pageIdPage id to select for.
integer$sysLangSys language uid
Returns
integer Number of content elements from the PID where the language is set to a certain value.
Todo:
Define visibility

Definition at line 328 of file TranslationStatusController.php.

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

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

◆ getLangStatus()

TYPO3\CMS\Frontend\Controller\TranslationStatusController::getLangStatus (   $pageId,
  $langId 
)

Get an alternative language record for a specific page / language

Parameters
integer$pageIdPage ID to look up for.
integer$langIdLanguage UID to select for.
Returns
array pages_languages_overlay record
Todo:
Define visibility

Definition at line 302 of file TranslationStatusController.php.

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

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

◆ getSystemLanguages()

TYPO3\CMS\Frontend\Controller\TranslationStatusController::getSystemLanguages ( )

Selects all system languages (from sys_language)

Returns
array System language records in an array.
Todo:
Define visibility

Definition at line 276 of file TranslationStatusController.php.

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

Referenced by TYPO3\CMS\Frontend\Controller\TranslationStatusController\modMenu(), and TYPO3\CMS\Frontend\Controller\TranslationStatusController\renderL10nTable().

◆ main()

◆ modMenu()

TYPO3\CMS\Frontend\Controller\TranslationStatusController::modMenu ( )

Returns the menu array

Returns
array
Todo:
Define visibility

Definition at line 33 of file TranslationStatusController.php.

References TYPO3\CMS\Frontend\Controller\TranslationStatusController\getSystemLanguages().

◆ renderL10nTable()