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

Public Member Functions

 __construct (protected readonly IconFactory $iconFactory, protected readonly PageRenderer $pageRenderer, protected readonly EventDispatcherInterface $eventDispatcher, protected readonly UriBuilder $uriBuilder, protected readonly ModuleTemplateFactory $moduleTemplateFactory,)
 
 mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 initializeClipboard (ServerRequestInterface $request, bool $isClipboardShown)
 
 deleteRecords (ServerRequestInterface $request, Clipboard $clipboard)
 
 renderSearchBox (ServerRequestInterface $request, DatabaseRecordList $dbList, string $searchWord, int $searchLevels)
 
 getDocHeaderButtons (ModuleTemplate $view, Clipboard $clipboard, ServerRequestInterface $request, string $table, string $listUrl, array $moduleSettings)
 
 addNoRecordsFlashMessage (ModuleTemplate $view, string $table)
 
string languageSelector (array $siteLanguages, string $requestUri)
 
 canCreatePreviewLink ()
 
 editLockPermissions ()
 
 getShortcutTitle (array $arguments)
 
 showPageTranslations ()
 
 renderPageTranslations (DatabaseRecordList $dbList, array $siteLanguages)
 
 createModuleUri (ServerRequestInterface $request, array $params=[])
 
 isPageEditable ()
 
 getBackendUserAuthentication ()
 
 getLanguageService ()
 

Protected Attributes

Permission $pagePermissions
 
int $id = 0
 
string $table = ''
 
string $searchTerm = ''
 
array $pageInfo = []
 
string $returnUrl = ''
 
array $modTSconfig = []
 
ModuleData $moduleData = null
 
bool $allowClipboard = true
 
bool $allowSearch = true
 

Detailed Description

The Web > List module: Rendering the listing of records on a page.

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

Definition at line 61 of file RecordListController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Controller\RecordListController::__construct ( protected readonly IconFactory  $iconFactory,
protected readonly PageRenderer  $pageRenderer,
protected readonly EventDispatcherInterface  $eventDispatcher,
protected readonly UriBuilder  $uriBuilder,
protected readonly ModuleTemplateFactory  $moduleTemplateFactory 
)

Definition at line 77 of file RecordListController.php.

Member Function Documentation

◆ addNoRecordsFlashMessage()

◆ canCreatePreviewLink()

TYPO3\CMS\Backend\Controller\RecordListController::canCreatePreviewLink ( )
protected

Returns the configuration of mod.web_list.noViewWithDokTypes or the default value 254 (Sys Folders), if not set.

Definition at line 536 of file RecordListController.php.

References TYPO3\CMS\Core\Domain\Repository\PageRepository\DOKTYPE_SYSFOLDER, and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\Controller\RecordListController\getDocHeaderButtons().

◆ createModuleUri()

TYPO3\CMS\Backend\Controller\RecordListController::createModuleUri ( ServerRequestInterface  $request,
array  $params = [] 
)
protected

◆ deleteRecords()

TYPO3\CMS\Backend\Controller\RecordListController::deleteRecords ( ServerRequestInterface  $request,
Clipboard  $clipboard 
)
protected

◆ editLockPermissions()

TYPO3\CMS\Backend\Controller\RecordListController::editLockPermissions ( )
protected

◆ getBackendUserAuthentication()

◆ getDocHeaderButtons()

TYPO3\CMS\Backend\Controller\RecordListController::getDocHeaderButtons ( ModuleTemplate  $view,
Clipboard  $clipboard,
ServerRequestInterface  $request,
string  $table,
string  $listUrl,
array  $moduleSettings 
)
protected

◆ getLanguageService()

◆ getShortcutTitle()

TYPO3\CMS\Backend\Controller\RecordListController::getShortcutTitle ( array  $arguments)
protected

◆ initializeClipboard()

TYPO3\CMS\Backend\Controller\RecordListController::initializeClipboard ( ServerRequestInterface  $request,
bool  $isClipboardShown 
)
protected

Process incoming data and configure the clipboard.

Definition at line 224 of file RecordListController.php.

Referenced by TYPO3\CMS\Backend\Controller\RecordListController\mainAction().

◆ isPageEditable()

◆ languageSelector()

string TYPO3\CMS\Backend\Controller\RecordListController::languageSelector ( array  $siteLanguages,
string  $requestUri 
)
protected

Make selector box for creating new translation in a language Displays only languages which are not yet present for the current page and that are not disabled with page TS.

Returns
‪string HTML <select> element (if there were items for the box anyways...)
Exceptions
RouteNotFoundException

Definition at line 470 of file RecordListController.php.

References $GLOBALS, TYPO3\CMS\Backend\Controller\RecordListController\$id, $output, TYPO3\CMS\Redirects\Message\$targetUrl, TYPO3\CMS\Backend\Controller\RecordListController\getBackendUserAuthentication(), TYPO3\CMS\Backend\Controller\RecordListController\getLanguageService(), and TYPO3\CMS\Core\Database\Connection\PARAM_INT.

Referenced by TYPO3\CMS\Backend\Controller\RecordListController\mainAction().

◆ mainAction()

◆ renderPageTranslations()

TYPO3\CMS\Backend\Controller\RecordListController::renderPageTranslations ( DatabaseRecordList  $dbList,
array  $siteLanguages 
)
protected

◆ renderSearchBox()

TYPO3\CMS\Backend\Controller\RecordListController::renderSearchBox ( ServerRequestInterface  $request,
DatabaseRecordList  $dbList,
string  $searchWord,
int  $searchLevels 
)
protected

◆ showPageTranslations()

TYPO3\CMS\Backend\Controller\RecordListController::showPageTranslations ( )
protected

Member Data Documentation

◆ $allowClipboard

bool TYPO3\CMS\Backend\Controller\RecordListController::$allowClipboard = true
protected

Definition at line 74 of file RecordListController.php.

◆ $allowSearch

bool TYPO3\CMS\Backend\Controller\RecordListController::$allowSearch = true
protected

Definition at line 75 of file RecordListController.php.

◆ $id

◆ $modTSconfig

array TYPO3\CMS\Backend\Controller\RecordListController::$modTSconfig = []
protected

◆ $moduleData

ModuleData TYPO3\CMS\Backend\Controller\RecordListController::$moduleData = null
protected

Definition at line 73 of file RecordListController.php.

◆ $pageInfo

array TYPO3\CMS\Backend\Controller\RecordListController::$pageInfo = []
protected

◆ $pagePermissions

Permission TYPO3\CMS\Backend\Controller\RecordListController::$pagePermissions
protected

◆ $returnUrl

string TYPO3\CMS\Backend\Controller\RecordListController::$returnUrl = ''
protected

◆ $searchTerm

string TYPO3\CMS\Backend\Controller\RecordListController::$searchTerm = ''
protected

Definition at line 69 of file RecordListController.php.

◆ $table

string TYPO3\CMS\Backend\Controller\RecordListController::$table = ''
protected