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

Public Member Functions

 main (array $configuration)
 
 buildJavascriptConfiguration ()
 
 applyToolbarConstraints ($show)
 
- Public Member Functions inherited from RteHtmlAreaApi
 main (array $configuration)
 
 buildJavascriptConfiguration ()
 
 getExtensionKey ()
 
 addsButtons ()
 
 getPluginButtons ()
 
 getPluginLabels ()
 
 getConvertToolbarForHtmlAreaArray ()
 
 requiresClassesConfiguration ()
 
 getRequiredPlugins ()
 
 setToolbar (array $toolbar)
 

Protected Member Functions

 getLanguages ()
 
 getDatabaseConnection ()
 
- Protected Member Functions inherited from RteHtmlAreaApi
 cleanList ($str)
 
 getPageConfigLabel ($string)
 
 isFrontend ()
 
 isFrontendEditActive ()
 
 getFullFileName ($filename)
 
 writeTemporaryFile ($label, $fileExtension= 'js', $contents= '')
 
 getLanguageService ()
 

Protected Attributes

 $pluginName = 'Language'
 
 $pluginButtons = 'lefttoright,righttoleft,language,showlanguagemarks'
 
 $convertToolbarForHtmlAreaArray
 
- Protected Attributes inherited from RteHtmlAreaApi
 $extensionKey = 'rtehtmlarea'
 
 $pluginName
 
 $relativePathToSkin = ''
 
 $toolbar
 
 $pluginButtons = ''
 
 $pluginLabels = ''
 
 $pluginAddsButtons = true
 
 $convertToolbarForHtmlAreaArray = array()
 
 $requiresClassesConfiguration = false
 
 $requiredPlugins = ''
 
 $configuration
 

Detailed Description

Language plugin for htmlArea RTE

Definition at line 27 of file rtehtmlarea/Classes/Extension/Language.php.

Member Function Documentation

applyToolbarConstraints (   $show)

Return an updated array of toolbar enabled buttons

Parameters
array$show,:array of toolbar elements that will be enabled, unless modified here
Returns
array toolbar button array, possibly updated

Definition at line 151 of file rtehtmlarea/Classes/Extension/Language.php.

References ExtensionManagementUtility\isLoaded().

buildJavascriptConfiguration ( )

Return JS configuration of the htmlArea plugins registered by the extension

Returns
string JS configuration for registered plugins

Definition at line 74 of file rtehtmlarea/Classes/Extension/Language.php.

References Language\getLanguages(), RteHtmlAreaApi\getLanguageService(), and RteHtmlAreaApi\writeTemporaryFile().

getDatabaseConnection ( )
protected
Returns
DatabaseConnection

Definition at line 163 of file rtehtmlarea/Classes/Extension/Language.php.

References $GLOBALS.

Referenced by Language\getLanguages().

getLanguages ( )
protected

Getting all languages into an array where the key is the ISO alpha-2 code of the language and where the value are the name of the language in the current language Note: we exclude sacred and constructed languages

Returns
array An array of names of languages

Definition at line 104 of file rtehtmlarea/Classes/Extension/Language.php.

References $lang, BackendUtility\BEenableFields(), BackendUtility\deleteClause(), Language\getDatabaseConnection(), ExtensionManagementUtility\isLoaded(), and GeneralUtility\trimExplode().

Referenced by Language\buildJavascriptConfiguration().

main ( array  $configuration)

Returns TRUE if the plugin is available and correctly initialized

Parameters
array$configurationConfiguration array given from calling object down to the single plugins
Returns
bool TRUE if this plugin object should be made available in the current environment and is correctly initialized

Definition at line 61 of file rtehtmlarea/Classes/Extension/Language.php.

References ExtensionManagementUtility\isLoaded(), and GeneralUtility\rmFromList().

Member Data Documentation

$convertToolbarForHtmlAreaArray
protected
Initial value:
= array(
'lefttoright' => 'LeftToRight',
'righttoleft' => 'RightToLeft',
'language' => 'Language',
'showlanguagemarks' => 'ShowLanguageMarks'
)

Definition at line 48 of file rtehtmlarea/Classes/Extension/Language.php.

$pluginButtons = 'lefttoright,righttoleft,language,showlanguagemarks'
protected

Definition at line 41 of file rtehtmlarea/Classes/Extension/Language.php.

$pluginName = 'Language'
protected

Definition at line 34 of file rtehtmlarea/Classes/Extension/Language.php.