‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Controller\ColumnSelectorController Class Reference

Public Member Functions

 __construct (protected readonly ResponseFactoryInterface $responseFactory, protected readonly BackendViewFactory $backendViewFactory,)
 
 updateVisibleColumnsAction (ServerRequestInterface $request)
 
 showColumnsSelectorAction (ServerRequestInterface $request)
 

Protected Member Functions

 getColumns (string $table, int $pageId)
 
 getFileFields ()
 
 htmlResponse (ViewInterface $view)
 
 jsonResponse (array $data)
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 

Private Attributes

const PSEUDO_FIELDS = ['_REF_', '_PATH_']
 
const EXCLUDE_FILE_FIELDS
 

Detailed Description

Controller for handling the display column selection for records, typically executed from list modules.

This class is a specific Backend controller implementation and is not part of the TYPO3's Core API.

Definition at line 36 of file ColumnSelectorController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\ColumnSelectorController::__construct ( protected readonly ResponseFactoryInterface  $responseFactory,
protected readonly BackendViewFactory  $backendViewFactory 
)

Definition at line 52 of file ColumnSelectorController.php.

Member Function Documentation

◆ getBackendUserAuthentication()

TYPO3\CMS\Backend\Controller\ColumnSelectorController::getBackendUserAuthentication ( )
protected

◆ getColumns()

TYPO3\CMS\Backend\Controller\ColumnSelectorController::getColumns ( string  $table,
int  $pageId 
)
protected

◆ getFileFields()

TYPO3\CMS\Backend\Controller\ColumnSelectorController::getFileFields ( )
protected

Get file related fields by merging sys_file and sys_file_metadata together and adding the corresponding table as prefix (needed for labels processing).

Definition at line 179 of file ColumnSelectorController.php.

Referenced by TYPO3\CMS\Backend\Controller\ColumnSelectorController\getColumns().

◆ getLanguageService()

TYPO3\CMS\Backend\Controller\ColumnSelectorController::getLanguageService ( )
protected

◆ htmlResponse()

TYPO3\CMS\Backend\Controller\ColumnSelectorController::htmlResponse ( ViewInterface  $view)
protected

◆ jsonResponse()

TYPO3\CMS\Backend\Controller\ColumnSelectorController::jsonResponse ( array  $data)
protected

◆ showColumnsSelectorAction()

TYPO3\CMS\Backend\Controller\ColumnSelectorController::showColumnsSelectorAction ( ServerRequestInterface  $request)

◆ updateVisibleColumnsAction()

TYPO3\CMS\Backend\Controller\ColumnSelectorController::updateVisibleColumnsAction ( ServerRequestInterface  $request)

Member Data Documentation

◆ EXCLUDE_FILE_FIELDS

const TYPO3\CMS\Backend\Controller\ColumnSelectorController::EXCLUDE_FILE_FIELDS
private
Initial value:
= [
'pid',
'identifier',
'name',
'metadata',
'file',
'sys_language_uid',
'l10n_parent',
't3ver_state',
't3ver_wsid',
't3ver_oid',
]

Definition at line 39 of file ColumnSelectorController.php.

◆ PSEUDO_FIELDS

const TYPO3\CMS\Backend\Controller\ColumnSelectorController::PSEUDO_FIELDS = ['_REF_', '_PATH_']
private

Definition at line 38 of file ColumnSelectorController.php.