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

Public Member Functions

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

Protected Member Functions

 initialize ()
 
bool canRender (string $itemName, string $type)
 
bool canBeEdited ()
 
bool canBeRenamed ()
 
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

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

Provides click menu items for files and folders

Definition at line 32 of file FileProvider.php.

Member Function Documentation

◆ canBeCopied()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::canBeCopied ( )
protected

◆ canBeCut()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::canBeCut ( )
protected

◆ canBeDeleted()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::canBeDeleted ( )
protected
Returns
‪bool

Definition at line 203 of file FileProvider.php.

Referenced by TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider\canRender().

◆ canBeEdited()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::canBeEdited ( )
protected

◆ canBePastedInto()

◆ canBeRenamed()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::canBeRenamed ( )
protected

◆ canCreateNew()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::canCreateNew ( )
protected

◆ canHandle()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::canHandle ( )
Returns
‪bool

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

Reimplemented in TYPO3\CMS\Form\Hooks\FormFileProvider.

Definition at line 107 of file FileProvider.php.

◆ canRender()

◆ canShowInfo()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::canShowInfo ( )
protected

◆ getAdditionalAttributes()

array TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::getAdditionalAttributes ( string  $itemName)
protected

◆ getIdentifier()

string TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::getIdentifier ( )
protected
Returns
‪string

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

Definition at line 391 of file FileProvider.php.

◆ initialize()

TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::initialize ( )
protected

Initialize file object

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

Definition at line 115 of file FileProvider.php.

◆ isFile()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::isFile ( )
protected

◆ isFolder()

◆ isFoldersAreInTheSameRoot()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::isFoldersAreInTheSameRoot (   $fileOrFolderInClipBoard)
protected

Checks if folder and record are in the same filemount Cannot copy folders between filemounts

Parameters
File | Folder | null$fileOrFolderInClipBoard
Returns
‪bool

Definition at line 268 of file FileProvider.php.

Referenced by TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider\canBePastedInto().

◆ isRecordInClipboard()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::isRecordInClipboard ( string  $mode = '')
protected

Checks if a file record is in the "normal" pad of the clipboard

Parameters
string$mode‪"copy", "cut" or '' for any mode
Returns
‪bool

Definition at line 283 of file FileProvider.php.

References TYPO3\CMS\Backend\ContextMenu\ItemProviders\AbstractProvider\$table.

Referenced by TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider\canBeCopied(), TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider\canBeCut(), and TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider\canRender().

◆ isStorageRoot()

bool TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::isStorageRoot ( )
protected
Returns
‪bool

Definition at line 301 of file FileProvider.php.

Member Data Documentation

◆ $itemsConfiguration

array TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::$itemsConfiguration
protected

Definition at line 40 of file FileProvider.php.

◆ $record

File Folder TYPO3\CMS\Filelist\ContextMenu\ItemProviders\FileProvider::$record
protected

Definition at line 36 of file FileProvider.php.