TYPO3
7.6
|
Public Member Functions | |
getSystemLanguages ($pageId=0) | |
translationInfo ($table, $uid, $languageUid=0, array $row=null, $selFieldList= '') | |
getTranslationTable ($table) | |
isTranslationInOwnTable ($table) | |
foreignTranslationTable ($table) | |
Protected Member Functions | |
getDatabaseConnection () | |
getLanguageService () | |
getDefaultLanguageFlag (array $modSharedTSconfig) | |
getDefaultLanguageLabel (array $modSharedTSconfig) | |
Contains translation tools
Definition at line 25 of file TranslationConfigurationProvider.php.
foreignTranslationTable | ( | $table | ) |
Returns foreign translation table, if any
string | $table | The table name |
Definition at line 183 of file TranslationConfigurationProvider.php.
References $GLOBALS.
Referenced by TranslationConfigurationProvider\getTranslationTable().
|
protected |
Definition at line 30 of file TranslationConfigurationProvider.php.
References $GLOBALS.
Referenced by TranslationConfigurationProvider\getSystemLanguages(), and TranslationConfigurationProvider\translationInfo().
|
protected |
array | $modSharedTSconfig |
Definition at line 202 of file TranslationConfigurationProvider.php.
Referenced by TranslationConfigurationProvider\getSystemLanguages().
|
protected |
array | $modSharedTSconfig |
Definition at line 220 of file TranslationConfigurationProvider.php.
References TranslationConfigurationProvider\getLanguageService().
Referenced by TranslationConfigurationProvider\getSystemLanguages().
|
protected |
Definition at line 38 of file TranslationConfigurationProvider.php.
References $GLOBALS.
Referenced by TranslationConfigurationProvider\getDefaultLanguageLabel(), and TranslationConfigurationProvider\getSystemLanguages().
getSystemLanguages | ( | $pageId = 0 | ) |
Returns array of system languages
The property flagIcon returns a string <flags-xx>. The calling party should call ::getSpriteIcon(<flags-xx>) to get an HTML which will represent the flag of this language.
int | $pageId | Page id (used to get TSconfig configuration setting flag and label for default language) |
Definition at line 53 of file TranslationConfigurationProvider.php.
References TranslationConfigurationProvider\getDatabaseConnection(), TranslationConfigurationProvider\getDefaultLanguageFlag(), TranslationConfigurationProvider\getDefaultLanguageLabel(), TranslationConfigurationProvider\getLanguageService(), BackendUtility\getModTSconfig(), BackendUtility\getRecord(), and ExtensionManagementUtility\isLoaded().
getTranslationTable | ( | $table | ) |
Returns the table in which translations for input table is found.
string | $table | The table name |
Definition at line 161 of file TranslationConfigurationProvider.php.
References TranslationConfigurationProvider\foreignTranslationTable(), and TranslationConfigurationProvider\isTranslationInOwnTable().
Referenced by TranslationConfigurationProvider\translationInfo().
isTranslationInOwnTable | ( | $table | ) |
Returns TRUE, if the input table has localization enabled and done so with records from the same table
string | $table | The table name |
Definition at line 172 of file TranslationConfigurationProvider.php.
References $GLOBALS.
Referenced by TranslationConfigurationProvider\getTranslationTable().
translationInfo | ( | $table, | |
$uid, | |||
$languageUid = 0 , |
|||
array | $row = null , |
||
$selFieldList = '' |
|||
) |
Information about translation for an element Will overlay workspace version of record too!
string | $table | Table name |
int | $uid | Record uid |
int | $languageUid | Language uid. If 0, then all languages are selected. |
array | $row | The record to be translated |
string | $selFieldList | Select fields for the query which fetches the translations of the current record |
Definition at line 104 of file TranslationConfigurationProvider.php.
References $GLOBALS, BackendUtility\deleteClause(), TranslationConfigurationProvider\getDatabaseConnection(), BackendUtility\getRecordWSOL(), TranslationConfigurationProvider\getTranslationTable(), and BackendUtility\versioningPlaceholderClause().