RecordListController
Script Class for 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.
Table of Contents
Properties
- $eventDispatcher : EventDispatcherInterface
- $iconFactory : IconFactory
- $id : int
- $modTSconfig : array<string|int, mixed>
- $moduleTemplate : ModuleTemplate
- ModuleTemplate object
- $moduleTemplateFactory : ModuleTemplateFactory
- $pageInfo : array<string|int, mixed>
- $pagePermissions : Permission
- $pageRenderer : PageRenderer
- $responseFactory : ResponseFactoryInterface
- $returnUrl : string
- $siteLanguages : array<string|int, SiteLanguage>
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- mainAction() : ResponseInterface
- Injects the request object for the current request or subrequest
- canCreatePreviewLink() : bool
- Returns the configuration of mod.web_list.noViewWithDokTypes or the default value 254 (Sys Folders) and 255 (Recycler), if not set.
- editLockPermissions() : bool
- Check whether or not the current backend user is an admin or the current page is locked by editlock.
- getBackendUserAuthentication() : BackendUserAuthentication
- getDocHeaderButtons() : void
- Create the panel of buttons for submitting the form or otherwise perform operations.
- getLanguageService() : LanguageService
- getShortcutTitle() : string
- Returns the shortcut title for the current page
- htmlResponse() : ResponseInterface
- initializeClipboard() : Clipboard
- Processing incoming data and configures the clipboard.
- isPageEditable() : bool
- Check if page can be edited by current user
- languageSelector() : string
- 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.
- renderSearchBox() : string
- showPageTranslations() : bool
Properties
$eventDispatcher
protected
EventDispatcherInterface
$eventDispatcher
$iconFactory
protected
IconFactory
$iconFactory
$id
protected
int
$id
= 0
$modTSconfig
protected
array<string|int, mixed>
$modTSconfig
= []
$moduleTemplate
ModuleTemplate object
protected
ModuleTemplate
$moduleTemplate
$moduleTemplateFactory
protected
ModuleTemplateFactory
$moduleTemplateFactory
$pageInfo
protected
array<string|int, mixed>
$pageInfo
= []
$pagePermissions
protected
Permission
$pagePermissions
$pageRenderer
protected
PageRenderer
$pageRenderer
$responseFactory
protected
ResponseFactoryInterface
$responseFactory
$returnUrl
protected
string
$returnUrl
= ''
$siteLanguages
protected
array<string|int, SiteLanguage>
$siteLanguages
= []
$uriBuilder
protected
UriBuilder
$uriBuilder
Methods
__construct()
public
__construct(IconFactory $iconFactory, PageRenderer $pageRenderer, EventDispatcherInterface $eventDispatcher, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory, ResponseFactoryInterface $responseFactory) : mixed
Parameters
- $iconFactory : IconFactory
- $pageRenderer : PageRenderer
- $eventDispatcher : EventDispatcherInterface
- $uriBuilder : UriBuilder
- $moduleTemplateFactory : ModuleTemplateFactory
- $responseFactory : ResponseFactoryInterface
mainAction()
Injects the request object for the current request or subrequest
public
mainAction(ServerRequestInterface $request) : ResponseInterface
Parameters
- $request : ServerRequestInterface
-
the current request
Return values
ResponseInterface —the response with the content
canCreatePreviewLink()
Returns the configuration of mod.web_list.noViewWithDokTypes or the default value 254 (Sys Folders) and 255 (Recycler), if not set.
protected
canCreatePreviewLink() : bool
Return values
booleditLockPermissions()
Check whether or not the current backend user is an admin or the current page is locked by editlock.
protected
editLockPermissions() : bool
Return values
boolgetBackendUserAuthentication()
protected
getBackendUserAuthentication() : BackendUserAuthentication
Return values
BackendUserAuthenticationgetDocHeaderButtons()
Create the panel of buttons for submitting the form or otherwise perform operations.
protected
getDocHeaderButtons(Clipboard $clipboard, array<string|int, mixed> $queryParams, string $table, string $listUrl, array<string|int, mixed> $moduleSettings) : void
Parameters
- $clipboard : Clipboard
- $queryParams : array<string|int, mixed>
- $table : string
- $listUrl : string
- $moduleSettings : array<string|int, mixed>
getLanguageService()
protected
getLanguageService() : LanguageService
Return values
LanguageServicegetShortcutTitle()
Returns the shortcut title for the current page
protected
getShortcutTitle(array<string|int, mixed> $arguments) : string
Parameters
- $arguments : array<string|int, mixed>
Return values
stringhtmlResponse()
protected
htmlResponse(string $html) : ResponseInterface
Parameters
- $html : string
Return values
ResponseInterfaceinitializeClipboard()
Processing incoming data and configures the clipboard.
protected
initializeClipboard(ServerRequestInterface $request, bool $isClipboardShown) : Clipboard
Parameters
- $request : ServerRequestInterface
- $isClipboardShown : bool
Return values
ClipboardisPageEditable()
Check if page can be edited by current user
protected
isPageEditable() : bool
Return values
boollanguageSelector()
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.
protected
languageSelector(string $requestUri) : string
Parameters
- $requestUri : string
Tags
Return values
string —HTML
renderSearchBox()
protected
renderSearchBox(DatabaseRecordList $dblist, string $searchWord, int $searchLevels) : string
Parameters
- $dblist : DatabaseRecordList
- $searchWord : string
- $searchLevels : int
Return values
stringshowPageTranslations()
protected
showPageTranslations() : bool