‪TYPO3CMS  ‪main
TYPO3\CMS\Form\Hooks\FormFileProvider Class Reference
Inheritance diagram for TYPO3\CMS\Form\Hooks\FormFileProvider:
TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider TYPO3\CMS\Backend\ContextMenu\ItemProviders\ProviderInterface

Public Member Functions

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

Protected Member Functions

 purgeItems (array $items)
 
 canBeEdited ()
 
 canBeRenamed ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider
 initialize ()
 
 canRender (string $itemName, string $type)
 
 canEditMetadata ()
 
 canBeDeleted ()
 
 canShowInfo ()
 
 canCreateNew ()
 
 canCreateNewFilemount ()
 
 canBeCopied ()
 
 canBeCut ()
 
 canBePastedInto ()
 
 canBeDownloaded ()
 
 isOnlineMedia ()
 
 isFoldersAreInTheSameRoot ($fileOrFolderInClipBoard)
 
 isRecordInClipboard (string $mode='')
 
 isStorageRoot ()
 
 isFile ()
 
 isFolder ()
 
 getAdditionalAttributes (string $itemName)
 
 getIdentifier ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider
 initClipboard ()
 
 initDisabledItems ()
 
 prepareItems (array $itemsConfiguration)
 

Protected Attributes

array $itemsConfiguration = array( )
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider
File Folder null $record
 
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

Purges previously added form files from items for context menus.

Definition at line 27 of file FormFileProvider.php.

Member Function Documentation

◆ addItems()

TYPO3\CMS\Form\Hooks\FormFileProvider::addItems ( array  $items)

◆ canBeEdited()

TYPO3\CMS\Form\Hooks\FormFileProvider::canBeEdited ( )
protected

◆ canBeRenamed()

TYPO3\CMS\Form\Hooks\FormFileProvider::canBeRenamed ( )
protected

◆ canHandle()

TYPO3\CMS\Form\Hooks\FormFileProvider::canHandle ( )

Whether this provider can handle given request (usually a check based on table, uid and context)

Reimplemented from TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider.

Definition at line 41 of file FormFileProvider.php.

References TYPO3\CMS\Form\Mvc\Persistence\FormPersistenceManager\FORM_DEFINITION_FILE_EXTENSION.

◆ getPriority()

TYPO3\CMS\Form\Hooks\FormFileProvider::getPriority ( )

Lowest priority, thus gets executed last.

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

Definition at line 36 of file FormFileProvider.php.

◆ purgeItems()

TYPO3\CMS\Form\Hooks\FormFileProvider::purgeItems ( array  $items)
protected

Purges items that are not allowed for according command. According canBeEdited, canBeRenamed, ... commands will always return false in order to remove those form file items.

Using the canRender() approach avoid adding hardcoded index name lookup. Thus, it's streamlined with the rest of the provides, but actually purges items instead of adding them.

Parameters
array$items

Definition at line 64 of file FormFileProvider.php.

References TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider\canRender().

Referenced by TYPO3\CMS\Form\Hooks\FormFileProvider\addItems().

Member Data Documentation

◆ $itemsConfiguration

array TYPO3\CMS\Form\Hooks\FormFileProvider::$itemsConfiguration = array( )
protected

Definition at line 31 of file FormFileProvider.php.