‪TYPO3CMS  9.5
TYPO3\CMS\Impexp\ContextMenu\ItemProvider Class Reference
Inheritance diagram for TYPO3\CMS\Impexp\ContextMenu\ItemProvider:
TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider TYPO3\CMS\Backend\ContextMenu\ItemProviders\ProviderInterface

Public Member Functions

bool canHandle ()
 
int getPriority ()
 
array addItems (array $items)
 
- ‪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)
 
 isImportEnabled ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider
 initialize ()
 
 initClipboard ()
 
 initDisabledItems ()
 
array prepareItems (array $itemsConfiguration)
 
string getIdentifier ()
 

Protected Attributes

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

Context menu item provider adding export and import items

this is a internal TYPO3 hook implementation and solely used for EXT:impexp and not part of TYPO3's Core API.

Definition at line 24 of file ItemProvider.php.

Member Function Documentation

◆ addItems()

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

Adds import/export items to the "submenu" if available

Parameters
array$items
Returns
‪array

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

Definition at line 70 of file ItemProvider.php.

References TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider\initDisabledItems(), and TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider\prepareItems().

◆ canHandle()

bool TYPO3\CMS\Impexp\ContextMenu\ItemProvider::canHandle ( )

Export item is added for all database records except files

Returns
‪bool

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

Definition at line 48 of file ItemProvider.php.

◆ canRender()

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

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

Definition at line 87 of file ItemProvider.php.

References TYPO3\CMS\Impexp\ContextMenu\ItemProvider\isImportEnabled().

◆ getAdditionalAttributes()

array TYPO3\CMS\Impexp\ContextMenu\ItemProvider::getAdditionalAttributes ( string  $itemName)
protected

Registers custom JS module with item onclick behaviour

Parameters
string$itemName
Returns
‪array

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

Definition at line 110 of file ItemProvider.php.

◆ getPriority()

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

This needs to be lower than priority of the RecordProvider

Returns
‪int

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

Definition at line 59 of file ItemProvider.php.

◆ isImportEnabled()

TYPO3\CMS\Impexp\ContextMenu\ItemProvider::isImportEnabled ( )
protected

Check if import functionality is available for current user

Definition at line 118 of file ItemProvider.php.

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

Member Data Documentation

◆ $itemsConfiguration

array TYPO3\CMS\Impexp\ContextMenu\ItemProvider::$itemsConfiguration
protected
Initial value:
= array(
'exportT3d' => [
'type' => 'item',
'label' => 'LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:export',
'iconIdentifier' => 'actions-document-export-t3d',
'callbackAction' => 'exportT3d'
],
'importT3d' => [
'type' => 'item',
'label' => 'LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:import',
'iconIdentifier' => 'actions-document-import-t3d',
'callbackAction' => 'importT3d',
]
)

Definition at line 28 of file ItemProvider.php.