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

Public Member Functions

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

Protected Attributes

 $pluginName = 'TYPO3Link'
 
 $pluginButtons = 'link, unlink'
 
 $convertToolbarForHtmlAreaArray
 
- Protected Attributes inherited from RteHtmlAreaApi
 $extensionKey = 'rtehtmlarea'
 
 $pluginName
 
 $relativePathToSkin = ''
 
 $toolbar
 
 $pluginButtons = ''
 
 $pluginLabels = ''
 
 $pluginAddsButtons = true
 
 $convertToolbarForHtmlAreaArray = array()
 
 $requiresClassesConfiguration = false
 
 $requiredPlugins = ''
 
 $configuration
 

Additional Inherited Members

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

Detailed Description

TYPO3Link plugin for htmlArea RTE

Definition at line 24 of file Typo3Link.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 130 of file Typo3Link.php.

References GeneralUtility\trimExplode().

buildJavascriptConfiguration ( )

Return JS configuration of the htmlArea plugins registered by the extension

Returns
string JS configuration for registered plugins, in this case, JS configuration of block elements

Definition at line 68 of file Typo3Link.php.

References RteHtmlAreaApi\$extensionKey, $GLOBALS, Typo3Link\$pluginName, Typo3Link\buildJSClassesAnchorArray(), GeneralUtility\quoteJSvalue(), and RteHtmlAreaApi\writeTemporaryFile().

buildJSClassesAnchorArray ( )

Return a JS array for special anchor classes

Returns
string classesAnchor array definition

Definition at line 90 of file Typo3Link.php.

References RteHtmlAreaApi\getFullFileName(), GeneralUtility\getIndpEnv(), RteHtmlAreaApi\getLanguageService(), GeneralUtility\quoteJSvalue(), and GeneralUtility\resolveBackPath().

Referenced by Typo3Link\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 56 of file Typo3Link.php.

Member Data Documentation

$convertToolbarForHtmlAreaArray
protected
Initial value:
= array(
'link' => 'CreateLink',
'unlink' => 'UnLink'
)

Definition at line 45 of file Typo3Link.php.

$pluginButtons = 'link, unlink'
protected

Definition at line 38 of file Typo3Link.php.

$pluginName = 'TYPO3Link'
protected

Definition at line 31 of file Typo3Link.php.

Referenced by Typo3Link\buildJavascriptConfiguration().