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

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Context Menu plugin for htmlArea RTE

Definition at line 23 of file ContextMenu.php.

Member Function Documentation

buildJavascriptConfiguration ( )

Return JS configuration of the htmlArea plugins registered by the extension

Returns
string JS configuration for registered plugins

Definition at line 49 of file ContextMenu.php.

References ContextMenu\buildNestedJSArray(), RteHtmlAreaApi\cleanList(), GeneralUtility\strtolower(), and GeneralUtility\trimExplode().

buildNestedJSArray (   $conf)
protected

Translate Page TS Config array in JS nested array definition Replace 0 values with false Unquote regular expression values Replace empty arrays with empty objects

Parameters
array$conf,:Page TSConfig configuration array
Returns
string nested JS array definition

Definition at line 73 of file ContextMenu.php.

References GeneralUtility\removeDotsFromTS().

Referenced by ContextMenu\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 38 of file ContextMenu.php.

Member Data Documentation

$pluginName = 'ContextMenu'
protected

Definition at line 30 of file ContextMenu.php.