‪TYPO3CMS  11.5
TYPO3\CMS\Recordlist\Controller\RecordListController Class Reference

Public Member Functions

 __construct (IconFactory $iconFactory, PageRenderer $pageRenderer, EventDispatcherInterface $eventDispatcher, UriBuilder $uriBuilder, ModuleTemplateFactory $moduleTemplateFactory, ResponseFactoryInterface $responseFactory)
 
ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

Clipboard initializeClipboard (ServerRequestInterface $request, bool $isClipboardShown)
 
 renderSearchBox (DatabaseRecordList $dblist, string $searchWord, int $searchLevels)
 
 getDocHeaderButtons (Clipboard $clipboard, array $queryParams, string $table, string $listUrl, array $moduleSettings)
 
string languageSelector (string $requestUri)
 
 canCreatePreviewLink ()
 
bool editLockPermissions ()
 
string getShortcutTitle (array $arguments)
 
 showPageTranslations ()
 
 htmlResponse (string $html)
 
BackendUserAuthentication getBackendUserAuthentication ()
 
LanguageService getLanguageService ()
 
bool isPageEditable ()
 

Protected Attributes

ModuleTemplate $moduleTemplate
 
SiteLanguage[] $siteLanguages = array( )
 
Permission $pagePermissions
 
int $id = 0
 
array $pageInfo = []
 
string $returnUrl = ''
 
array $modTSconfig = []
 
IconFactory $iconFactory
 
PageRenderer $pageRenderer
 
EventDispatcherInterface $eventDispatcher
 
UriBuilder $uriBuilder
 
ModuleTemplateFactory $moduleTemplateFactory
 
ResponseFactoryInterface $responseFactory
 

Detailed Description

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.

Definition at line 57 of file RecordListController.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ canCreatePreviewLink()

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

◆ editLockPermissions()

bool TYPO3\CMS\Recordlist\Controller\RecordListController::editLockPermissions ( )
protected

◆ getBackendUserAuthentication()

◆ getDocHeaderButtons()

TYPO3\CMS\Recordlist\Controller\RecordListController::getDocHeaderButtons ( Clipboard  $clipboard,
array  $queryParams,
string  $table,
string  $listUrl,
array  $moduleSettings 
)
protected

◆ getLanguageService()

◆ getShortcutTitle()

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

Returns the shortcut title for the current page

Parameters
array$arguments
Returns
‪string

Definition at line 657 of file RecordListController.php.

References $GLOBALS, and TYPO3\CMS\Recordlist\Controller\RecordListController\getLanguageService().

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

◆ htmlResponse()

TYPO3\CMS\Recordlist\Controller\RecordListController::htmlResponse ( string  $html)
protected

◆ initializeClipboard()

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

Processing incoming data and configures the clipboard.

Parameters
ServerRequestInterface$request
bool$isClipboardShown
Returns
‪Clipboard

Definition at line 351 of file RecordListController.php.

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

◆ isPageEditable()

bool TYPO3\CMS\Recordlist\Controller\RecordListController::isPageEditable ( )
protected

◆ languageSelector()

string TYPO3\CMS\Recordlist\Controller\RecordListController::languageSelector ( 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.

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

Definition at line 564 of file RecordListController.php.

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

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

◆ mainAction()

ResponseInterface TYPO3\CMS\Recordlist\Controller\RecordListController::mainAction ( ServerRequestInterface  $request)

Injects the request object for the current request or subrequest

Parameters
ServerRequestInterface$request‪the current request
Returns
‪ResponseInterface the response with the content

Definition at line 107 of file RecordListController.php.

References $GLOBALS, TYPO3\CMS\Recordlist\Controller\RecordListController\$id, TYPO3\CMS\Recordlist\Controller\RecordListController\$modTSconfig, $output, TYPO3\CMS\Recordlist\Controller\RecordListController\$pageInfo, TYPO3\CMS\Recordlist\Controller\RecordListController\$pagePermissions, TYPO3\CMS\Recordlist\Controller\RecordListController\$returnUrl, TYPO3\CMS\Core\Page\JavaScriptModuleInstruction\forRequireJS(), TYPO3\CMS\Recordlist\Controller\RecordListController\getBackendUserAuthentication(), TYPO3\CMS\Recordlist\Controller\RecordListController\getDocHeaderButtons(), TYPO3\CMS\Recordlist\Controller\RecordListController\getLanguageService(), TYPO3\CMS\Recordlist\Controller\RecordListController\htmlResponse(), TYPO3\CMS\Core\Localization\LanguageService\includeLLFile(), TYPO3\CMS\Core\Messaging\AbstractMessage\INFO, TYPO3\CMS\Recordlist\Controller\RecordListController\initializeClipboard(), TYPO3\CMS\Recordlist\Controller\RecordListController\isPageEditable(), TYPO3\CMS\Recordlist\Controller\RecordListController\languageSelector(), TYPO3\CMS\Backend\Domain\Model\Element\ImmediateActionElement\moduleStateUpdate(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_SHOW, TYPO3\CMS\Recordlist\Controller\RecordListController\renderSearchBox(), TYPO3\CMS\Recordlist\Controller\RecordListController\showPageTranslations(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ renderSearchBox()

◆ showPageTranslations()

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

Member Data Documentation

◆ $eventDispatcher

EventDispatcherInterface TYPO3\CMS\Recordlist\Controller\RecordListController::$eventDispatcher
protected

◆ $iconFactory

IconFactory TYPO3\CMS\Recordlist\Controller\RecordListController::$iconFactory
protected

◆ $id

◆ $modTSconfig

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

◆ $moduleTemplate

ModuleTemplate TYPO3\CMS\Recordlist\Controller\RecordListController::$moduleTemplate
protected

ModuleTemplate object

Definition at line 63 of file RecordListController.php.

◆ $moduleTemplateFactory

ModuleTemplateFactory TYPO3\CMS\Recordlist\Controller\RecordListController::$moduleTemplateFactory
protected

◆ $pageInfo

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

◆ $pagePermissions

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

◆ $pageRenderer

PageRenderer TYPO3\CMS\Recordlist\Controller\RecordListController::$pageRenderer
protected

◆ $responseFactory

ResponseFactoryInterface TYPO3\CMS\Recordlist\Controller\RecordListController::$responseFactory
protected

◆ $returnUrl

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

◆ $siteLanguages

SiteLanguage [] TYPO3\CMS\Recordlist\Controller\RecordListController::$siteLanguages = array( )
protected

Definition at line 67 of file RecordListController.php.

◆ $uriBuilder

UriBuilder TYPO3\CMS\Recordlist\Controller\RecordListController::$uriBuilder
protected