‪TYPO3CMS  9.5
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

int getPriority ()
 
bool canHandle ()
 
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

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

Protected Attributes

array $itemsConfiguration = array( )
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider
File Folder $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 26 of file FormFileProvider.php.

Member Function Documentation

◆ addItems()

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

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

Definition at line 55 of file FormFileProvider.php.

References TYPO3\CMS\Form\Hooks\FormFileProvider\purgeItems().

◆ canBeEdited()

bool TYPO3\CMS\Form\Hooks\FormFileProvider::canBeEdited ( )
protected
Returns
‪bool

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

Definition at line 91 of file FormFileProvider.php.

◆ canBeRenamed()

bool TYPO3\CMS\Form\Hooks\FormFileProvider::canBeRenamed ( )
protected
Returns
‪bool

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

Definition at line 99 of file FormFileProvider.php.

◆ canHandle()

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

◆ getPriority()

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

Lowest priority, thus gets executed last.

Returns
‪int

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

Definition at line 37 of file FormFileProvider.php.

◆ purgeItems()

array 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
Returns
‪array

Definition at line 73 of file FormFileProvider.php.

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

Member Data Documentation

◆ $itemsConfiguration

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

Definition at line 30 of file FormFileProvider.php.