TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TranslationStatusController Class Reference
Inheritance diagram for TranslationStatusController:
AbstractFunctionModule

Public Member Functions

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

Protected Member Functions

 getLanguageService ()
 
 getDatabaseConnection ()
 
 getBackendUser ()
 
- Protected Member Functions inherited from AbstractFunctionModule
 getLanguageService ()
 
 getBackendUserAuthentication ()
 
 getDocumentTemplate ()
 
 getBackPath ()
 
 getDatabaseConnection ()
 
 getPageRenderer ()
 

Protected Attributes

 $iconFactory
 
- Protected Attributes inherited from AbstractFunctionModule
 $pageRenderer = null
 

Additional Inherited Members

- Public Attributes inherited from AbstractFunctionModule
 $pObj
 
 $extObj = null
 
 $thisPath = ''
 
 $localLangFile = 'locallang.xlf'
 
 $extClassConf
 
 $function_key = ''
 

Detailed Description

Class for displaying translation status of pages in the tree.

Definition at line 27 of file TranslationStatusController.php.

Constructor & Destructor Documentation

__construct ( )

Construct for initialize class variables

Definition at line 37 of file TranslationStatusController.php.

References GeneralUtility\makeInstance().

Member Function Documentation

getBackendUser ( )
protected
getContentElementCount (   $pageId,
  $sysLang 
)

Counting content elements for a single language on a page.

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

Definition at line 382 of file TranslationStatusController.php.

References BackendUtility\deleteClause(), TranslationStatusController\getDatabaseConnection(), and BackendUtility\versioningPlaceholderClause().

Referenced by TranslationStatusController\renderL10nTable().

getDatabaseConnection ( )
protected
getLangStatus (   $pageId,
  $langId 
)

Get an alternative language record for a specific page / language

Parameters
int$pageIdPage ID to look up for.
int$langIdLanguage UID to select for.
Returns
array pages_languages_overlay record

Definition at line 356 of file TranslationStatusController.php.

References $GLOBALS, BackendUtility\deleteClause(), TranslationStatusController\getDatabaseConnection(), BackendUtility\versioningPlaceholderClause(), and BackendUtility\workspaceOL().

Referenced by TranslationStatusController\renderL10nTable().

getLanguageService ( )
protected
getSystemLanguages ( )

Selects all system languages (from sys_language)

Returns
array System language records in an array.

Definition at line 329 of file TranslationStatusController.php.

References BackendUtility\deleteClause(), TranslationStatusController\getBackendUser(), and TranslationStatusController\getDatabaseConnection().

Referenced by TranslationStatusController\modMenu(), and TranslationStatusController\renderL10nTable().

main ( )
modMenu ( )
renderL10nTable ( $tree)

Member Data Documentation

$iconFactory
protected

Definition at line 32 of file TranslationStatusController.php.