‪TYPO3CMS  11.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)
 
- ‪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 class is not considered part of the public TYPO3 API.

Definition at line 29 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 74 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 53 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 91 of file ItemProvider.php.

◆ 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 114 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 63 of file ItemProvider.php.

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 33 of file ItemProvider.php.