‪TYPO3CMS  10.4
TYPO3\CMS\Beuser\ContextMenu\ItemProvider Class Reference
Inheritance diagram for TYPO3\CMS\Beuser\ContextMenu\ItemProvider:
TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider TYPO3\CMS\Backend\ContextMenu\ItemProviders\ProviderInterface

Public Member Functions

array addItems (array $items)
 
int getPriority ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider
bool canHandle ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider
 __construct (string $table, string $identifier, string $context='')
 

Protected Member Functions

bool canRender (string $itemName, string $type)
 
array getAdditionalAttributes (string $itemName)
 
bool canShowPermissionsModule ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider
 initPermissions ()
 
bool canBeCreated ()
 
bool canBeEdited ()
 
bool isRecordLocked ()
 
bool canBeCut ()
 
bool canBeCopied ()
 
bool canBePastedInto ()
 
bool canBePastedAfter ()
 
bool canBeSorted ()
 
bool canBeDeleted ()
 
bool canBeViewed ()
 
bool canShowInfo ()
 
bool canClearCache ()
 
bool isDeleted ()
 
bool isRoot ()
 
bool isWebMount ()
 
int getPreviewPid ()
 
string getViewLink ()
 
bool canBeToggled (string $fieldName, int $value)
 
bool hasLanguageAccess ()
 
bool isExcludedDoktype ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider
 initialize ()
 
bool hasPagePermission (int $permission)
 
array getViewAdditionalAttributes ()
 
array getEnableDisableAdditionalAttributes ()
 
array getPasteAdditionalAttributes (string $type)
 
array getDeleteAdditionalAttributes ()
 
bool canShowHistory ()
 
bool canBeNew ()
 
bool isDeletionDisabledInTS ()
 
bool canBeEnabled ()
 
bool canBeDisabled ()
 
bool canOpenNewCEWizard ()
 
bool canOpenListModule ()
 
bool hasDisableColumnWithValue (int $value)
 
bool isDeletePlaceholder ()
 
bool isRecordInClipboard (string $mode='')
 
bool isRecordATranslation ()
 
bool isRecordCurrentBackendUser ()
 
bool parentPageCanBeViewed ()
 
string getIdentifier ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider
 initClipboard ()
 
 initDisabledItems ()
 
array prepareItems (array $itemsConfiguration)
 

Protected Attributes

array $itemsConfiguration
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider
string $table = 'pages'
 
array $itemsConfiguration
 
bool $languageAccess = false
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\RecordProvider
array $record = array( )
 
array $pageRecord = array( )
 
int $pagePermissions = 0
 
array $itemsConfiguration
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider
LanguageService $languageService
 
BackendUserAuthentication $backendUser
 
TYPO3 CMS Backend Clipboard Clipboard $clipboard
 
array $itemsConfiguration = array( )
 
array $disabledItems = array( )
 
string $table = ''
 
string $identifier = ''
 
string $context = ''
 

Detailed Description

This class is a TYPO3 core-internal hook implementation and is not considered part of the Public TYPO3 API.

Definition at line 25 of file ItemProvider.php.

Member Function Documentation

◆ addItems()

array TYPO3\CMS\Beuser\ContextMenu\ItemProvider::addItems ( array  $items)

◆ canRender()

bool TYPO3\CMS\Beuser\ContextMenu\ItemProvider::canRender ( string  $itemName,
string  $type 
)
protected
Parameters
string$itemName
string$type
Returns
‪bool

Reimplemented from TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider.

Definition at line 43 of file ItemProvider.php.

References TYPO3\CMS\Beuser\ContextMenu\ItemProvider\canShowPermissionsModule().

◆ canShowPermissionsModule()

bool TYPO3\CMS\Beuser\ContextMenu\ItemProvider::canShowPermissionsModule ( )
protected

Checks if the page is allowed to show permission module

Returns
‪bool

Definition at line 91 of file ItemProvider.php.

References TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider\canBeEdited().

Referenced by TYPO3\CMS\Beuser\ContextMenu\ItemProvider\canRender().

◆ getAdditionalAttributes()

array TYPO3\CMS\Beuser\ContextMenu\ItemProvider::getAdditionalAttributes ( string  $itemName)
protected
Parameters
string$itemName
Returns
‪array

Reimplemented from TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider.

Definition at line 81 of file ItemProvider.php.

◆ getPriority()

int TYPO3\CMS\Beuser\ContextMenu\ItemProvider::getPriority ( )

This priority should be lower than priority of the PageProvider, so it's evaluated after the PageProvider

Returns
‪int

Reimplemented from TYPO3\CMS\Backend\ContextMenu\ItemProviders\PageProvider.

Definition at line 72 of file ItemProvider.php.

Member Data Documentation

◆ $itemsConfiguration

array TYPO3\CMS\Beuser\ContextMenu\ItemProvider::$itemsConfiguration
protected
Initial value:
= array(
'permissions' => [
'type' => 'item',
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:CM_perms',
'iconIdentifier' => 'actions-lock',
'callbackAction' => 'openPermissionsModule'
],
)

Definition at line 29 of file ItemProvider.php.