TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider Class Reference
Inheritance diagram for TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider:
TYPO3\CMS\Backend\ContextMenu\Pagetree\ContextMenuDataProvider

Public Member Functions

 getContextMenuType ()
 
 setContextMenuType ($contextMenuType)
 
 getActionsForNode (TreeNode $node)
 

Protected Member Functions

 getConfiguration ()
 
 evaluateDisplayCondition (TreeNode $node, $displayCondition)
 
 replaceModuleTokenInContentUrl ($contentUrl)
 
 getLanguageService ()
 
 getBackendUser ()
 

Protected Attributes

 $disableItems = []
 
 $contextMenuType = ''
 

Detailed Description

Abstract Context Menu Data Provider

Definition at line 26 of file AbstractContextMenuDataProvider.php.

Member Function Documentation

◆ evaluateDisplayCondition()

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::evaluateDisplayCondition ( TreeNode  $node,
  $displayCondition 
)
protected

Evaluates a given display condition and returns TRUE if the condition matches

Examples: getContextInfo|inCutMode:1 || isInCopyMode:1 isLeafNode:1 isLeafNode:1 && isInCutMode:1

Parameters
TreeNode$node
string$displayCondition
Returns
bool

Definition at line 94 of file AbstractContextMenuDataProvider.php.

References TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider\getLanguageService(), TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider\replaceModuleTokenInContentUrl(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

◆ getActionsForNode()

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::getActionsForNode ( TreeNode  $node)
abstract

Returns the actions of the node

Parameters
TreeNode$node
Returns
ContextMenuActionCollection

Referenced by TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider\setContextMenuType().

◆ getBackendUser()

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::getBackendUser ( )
protected

Returns the current BE user.

Returns

Definition at line 247 of file AbstractContextMenuDataProvider.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider\getConfiguration().

◆ getConfiguration()

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::getConfiguration ( )
protected

Returns the configuration of the specified context menu type

Returns
array

Definition at line 76 of file AbstractContextMenuDataProvider.php.

References TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider\getBackendUser().

Referenced by TYPO3\CMS\Backend\ContextMenu\Pagetree\ContextMenuDataProvider\getActionsForNode().

◆ getContextMenuType()

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::getContextMenuType ( )

◆ getLanguageService()

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::getLanguageService ( )
protected

Returns LanguageService

Returns

Definition at line 237 of file AbstractContextMenuDataProvider.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider\evaluateDisplayCondition().

◆ replaceModuleTokenInContentUrl()

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::replaceModuleTokenInContentUrl (   $contentUrl)
protected

Add the CSRF token to the module URL if a "M" parameter is found

Parameters
string$contentUrl
Returns
string

Definition at line 220 of file AbstractContextMenuDataProvider.php.

Referenced by TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider\evaluateDisplayCondition().

◆ setContextMenuType()

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::setContextMenuType (   $contextMenuType)

Member Data Documentation

◆ $contextMenuType

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::$contextMenuType = ''
protected

◆ $disableItems

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::$disableItems = []
protected