TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider Class Reference
Inheritance diagram for TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider:
t3lib_contextmenu_AbstractDataProvider TYPO3\CMS\Backend\ContextMenu\Pagetree\ContextMenuDataProvider t3lib_contextmenu_pagetree_DataProvider

Public Member Functions

 getContextMenuType ()
 
 setContextMenuType ($contextMenuType)
 
 getActionsForNode (\TYPO3\CMS\Backend\Tree\TreeNode $node)
 

Protected Member Functions

 getConfiguration ()
 
 evaluateDisplayCondition (\TYPO3\CMS\Backend\Tree\TreeNode $node, $displayCondition)
 
 replaceModuleTokenInContentUrl ($contentUrl)
 

Protected Attributes

 $disableItems = array()
 
 $contextMenuType = ''
 

Detailed Description

Abstract Context Menu Data Provider

Author
Stefan Galinski stefa.nosp@m.n.ga.nosp@m.linsk.nosp@m.i@gm.nosp@m.ail.c.nosp@m.om

Definition at line 23 of file AbstractContextMenuDataProvider.php.

Member Function Documentation

◆ evaluateDisplayCondition()

TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider::evaluateDisplayCondition ( \TYPO3\CMS\Backend\Tree\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
\TYPO3\CMS\Backend\Tree\TreeNode$node
string$displayCondition
Returns
boolean

Definition at line 88 of file AbstractContextMenuDataProvider.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance(), and TYPO3\CMS\Backend\ContextMenu\AbstractContextMenuDataProvider\replaceModuleTokenInContentUrl().

◆ getActionsForNode()

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

Returns the actions of the node

Parameters
\TYPO3\CMS\Backend\Tree\TreeNode$node
Returns

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

◆ getConfiguration()

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

Returns the configuration of the specified context menu type

Returns
array

Definition at line 71 of file AbstractContextMenuDataProvider.php.

References $GLOBALS.

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

◆ getContextMenuType()

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

◆ 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 211 of file AbstractContextMenuDataProvider.php.

References $moduleName, and TYPO3\CMS\Backend\Utility\BackendUtility\getModuleUrl().

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 = array()
protected