‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\Container\FileReferenceContainer Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Container\FileReferenceContainer:
TYPO3\CMS\Backend\Form\Container\AbstractContainer TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

 __construct (private readonly IconFactory $iconFactory, private readonly InlineStackProcessor $inlineStackProcessor, private readonly EventDispatcherInterface $eventDispatcher, private readonly ResourceFactory $resourceFactory, private readonly ConnectionPool $connectionPool, private readonly UriBuilder $uriBuilder, private readonly MetaDataRepository $metaDataRepository,)
 
 render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Container\AbstractContainer
 injectNodeFactory (NodeFactory $nodeFactory)
 
 injectBackendViewFactory (BackendViewFactory $backendViewFactory)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 setData (array $data)
 

Public Attributes

const NODE_TYPE_IDENTIFIER = 'fileReferenceContainer'
 

Protected Member Functions

 renderFileReference (array $data)
 
 renderFileHeader (string $ariaAttributesString)
 
 renderFileReferenceHeaderControl ()
 
 getRecordTitle ()
 
 getTitleForRecord (array $databaseRow, array $fileRecord)
 
 getLabelFieldForRecord (array $databaseRow, array $fileRecord, string $field)
 
 getLanguageService ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Container\AbstractContainer
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
 explodeSingleFieldShowItemConfiguration (string $field)
 
 renderTabMenu (array $menuItems, string $domId)
 
 wrapWithFieldsetAndLegend (string $fieldContent)
 
 getBackendUserAuthentication ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $fileReferenceData = []
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\Container\AbstractContainer
NodeFactory $nodeFactory
 
BackendViewFactory $backendViewFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Private Attributes

const FILE_REFERENCE_TABLE = 'sys_file_reference'
 
const FOREIGN_SELECTOR = 'uid_local'
 

Detailed Description

Render a single file reference.

This container is called by FilesControlContainer to render a single file (reference). The container is also called by FormEngine for an incoming ajax request to expand an existing file (reference) or to create a new one.

This container creates the outer HTML of single file (references) - e.g. drag and drop and delete buttons. For rendering of the record itself processing is handed over to FullRecordContainer.

Definition at line 49 of file FileReferenceContainer.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Form\Container\FileReferenceContainer::__construct ( private readonly IconFactory  $iconFactory,
private readonly InlineStackProcessor  $inlineStackProcessor,
private readonly EventDispatcherInterface  $eventDispatcher,
private readonly ResourceFactory  $resourceFactory,
private readonly ConnectionPool  $connectionPool,
private readonly UriBuilder  $uriBuilder,
private readonly MetaDataRepository  $metaDataRepository 
)

Definition at line 61 of file FileReferenceContainer.php.

Member Function Documentation

◆ getLabelFieldForRecord()

TYPO3\CMS\Backend\Form\Container\FileReferenceContainer::getLabelFieldForRecord ( array  $databaseRow,
array  $fileRecord,
string  $field 
)
protected

◆ getLanguageService()

◆ getRecordTitle()

◆ getTitleForRecord()

TYPO3\CMS\Backend\Form\Container\FileReferenceContainer::getTitleForRecord ( array  $databaseRow,
array  $fileRecord 
)
protected

◆ render()

◆ renderFileHeader()

◆ renderFileReference()

TYPO3\CMS\Backend\Form\Container\FileReferenceContainer::renderFileReference ( array  $data)
protected

◆ renderFileReferenceHeaderControl()

Member Data Documentation

◆ $fileReferenceData

array TYPO3\CMS\Backend\Form\Container\FileReferenceContainer::$fileReferenceData = []
protected

File reference data used for JSON output

Definition at line 59 of file FileReferenceContainer.php.

Referenced by TYPO3\CMS\Backend\Form\Container\FileReferenceContainer\render().

◆ FILE_REFERENCE_TABLE

const TYPO3\CMS\Backend\Form\Container\FileReferenceContainer::FILE_REFERENCE_TABLE = 'sys_file_reference'
private

◆ FOREIGN_SELECTOR

const TYPO3\CMS\Backend\Form\Container\FileReferenceContainer::FOREIGN_SELECTOR = 'uid_local'
private

◆ NODE_TYPE_IDENTIFIER