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

Public Member Functions

 __construct ()
 
ResponseInterface mainAction (ServerRequestInterface $request)
 

Protected Member Functions

 init (ServerRequestInterface $request)
 
string main (ServerRequestInterface $request)
 
string languageSelector (int $id)
 
 showPageTranslations ()
 
ModuleTemplate getModuleTemplate ()
 
BackendUserAuthentication getBackendUserAuthentication ()
 
LanguageService getLanguageService ()
 
PageRenderer getPageRenderer ()
 

Protected Attributes

int $id
 
int $pointer
 
string $table
 
string $search_field
 
int $search_levels
 
int $showLimit
 
string $returnUrl
 
string $cmd
 
string $cmd_table
 
string $perms_clause = ''
 
array $modTSconfig
 
mixed[] bool $pageinfo
 
string[] $MOD_MENU = array( )
 
string[] $MOD_SETTINGS = array( )
 
string $body = ''
 
PageRenderer $pageRenderer
 
IconFactory $iconFactory
 
ModuleTemplate $moduleTemplate
 
SiteLanguage[] $siteLanguages = array( )
 

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 47 of file RecordListController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Recordlist\Controller\RecordListController::__construct ( )

Member Function Documentation

◆ getBackendUserAuthentication()

◆ getLanguageService()

LanguageService TYPO3\CMS\Recordlist\Controller\RecordListController::getLanguageService ( )
protected

◆ getModuleTemplate()

ModuleTemplate TYPO3\CMS\Recordlist\Controller\RecordListController::getModuleTemplate ( )
protected
Returns
‪ModuleTemplate

Definition at line 628 of file RecordListController.php.

References TYPO3\CMS\Recordlist\Controller\RecordListController\$moduleTemplate.

◆ getPageRenderer()

PageRenderer TYPO3\CMS\Recordlist\Controller\RecordListController::getPageRenderer ( )
protected

◆ init()

◆ languageSelector()

string TYPO3\CMS\Recordlist\Controller\RecordListController::languageSelector ( int  $id)
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
int$id‪Page id for which to create a new translation record of pages
Returns
‪string HTML <select> element (if there were items for the box anyways...)

Definition at line 548 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\Backend\Utility\BackendUtility\getLinkToDataHandlerAction().

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

◆ main()

string TYPO3\CMS\Recordlist\Controller\RecordListController::main ( ServerRequestInterface  $request)
protected

Main function, starting the rendering of the list.

Parameters
ServerRequestInterface$request
Returns
‪string

Definition at line 215 of file RecordListController.php.

References TYPO3\CMS\Recordlist\Controller\RecordListController\$body, TYPO3\CMS\Recordlist\Controller\RecordListController\$cmd, TYPO3\CMS\Recordlist\Controller\RecordListController\$cmd_table, $GLOBALS, TYPO3\CMS\Recordlist\Controller\RecordListController\$modTSconfig, $output, TYPO3\CMS\Recordlist\Controller\RecordListController\$pageinfo, TYPO3\CMS\Recordlist\Controller\RecordListController\$returnUrl, TYPO3\CMS\Backend\Template\Components\ButtonBar\BUTTON_POSITION_LEFT, TYPO3\CMS\Recordlist\Controller\RecordListController\getBackendUserAuthentication(), TYPO3\CMS\Backend\Utility\BackendUtility\getFuncCheck(), TYPO3\CMS\Recordlist\Controller\RecordListController\getLanguageService(), TYPO3\CMS\Recordlist\Controller\RecordListController\getPageRenderer(), TYPO3\CMS\Core\Messaging\AbstractMessage\INFO, TYPO3\CMS\Recordlist\Controller\RecordListController\languageSelector(), TYPO3\CMS\Core\Page\PageRenderer\loadRequireJsModule(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_EDIT, TYPO3\CMS\Backend\Utility\BackendUtility\readPageAccess(), TYPO3\CMS\Backend\Utility\BackendUtility\setUpdateSignal(), TYPO3\CMS\Recordlist\Controller\RecordListController\showPageTranslations(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode(), and TYPO3\CMS\Backend\Utility\BackendUtility\wrapInHelp().

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 Simply calls main() and init() and outputs the content

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

Definition at line 529 of file RecordListController.php.

References TYPO3\CMS\Recordlist\Controller\RecordListController\getBackendUserAuthentication(), TYPO3\CMS\Recordlist\Controller\RecordListController\init(), TYPO3\CMS\Backend\Utility\BackendUtility\lockRecords(), and TYPO3\CMS\Recordlist\Controller\RecordListController\main().

◆ showPageTranslations()

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

Member Data Documentation

◆ $body

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

◆ $cmd

string TYPO3\CMS\Recordlist\Controller\RecordListController::$cmd
protected

Command: Eg. "delete" or "setCB" (for DataHandler / clipboard operations)

Definition at line 95 of file RecordListController.php.

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

◆ $cmd_table

string TYPO3\CMS\Recordlist\Controller\RecordListController::$cmd_table
protected

Table on which the cmd-action is performed.

Definition at line 101 of file RecordListController.php.

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

◆ $iconFactory

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

Definition at line 145 of file RecordListController.php.

◆ $id

int TYPO3\CMS\Recordlist\Controller\RecordListController::$id
protected

Page Id for which to make the listing

Definition at line 53 of file RecordListController.php.

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

◆ $MOD_MENU

string [] TYPO3\CMS\Recordlist\Controller\RecordListController::$MOD_MENU = array( )
protected

Menu configuration

Definition at line 126 of file RecordListController.php.

◆ $MOD_SETTINGS

string [] TYPO3\CMS\Recordlist\Controller\RecordListController::$MOD_SETTINGS = array( )
protected

Module settings (session variable)

Definition at line 133 of file RecordListController.php.

◆ $modTSconfig

array TYPO3\CMS\Recordlist\Controller\RecordListController::$modTSconfig
protected

Module TSconfig

Definition at line 114 of file RecordListController.php.

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

◆ $moduleTemplate

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

ModuleTemplate object

Definition at line 151 of file RecordListController.php.

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

◆ $pageinfo

mixed [] bool TYPO3\CMS\Recordlist\Controller\RecordListController::$pageinfo
protected

Current ids page record

Definition at line 120 of file RecordListController.php.

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

◆ $pageRenderer

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

◆ $perms_clause

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

Page select perms clause

Definition at line 107 of file RecordListController.php.

◆ $pointer

int TYPO3\CMS\Recordlist\Controller\RecordListController::$pointer
protected

Pointer - for browsing list of records.

Definition at line 59 of file RecordListController.php.

◆ $returnUrl

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

Return URL

Definition at line 89 of file RecordListController.php.

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

◆ $search_field

string TYPO3\CMS\Recordlist\Controller\RecordListController::$search_field
protected

Search-fields

Definition at line 71 of file RecordListController.php.

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

◆ $search_levels

int TYPO3\CMS\Recordlist\Controller\RecordListController::$search_levels
protected

Search-levels

Definition at line 77 of file RecordListController.php.

◆ $showLimit

int TYPO3\CMS\Recordlist\Controller\RecordListController::$showLimit
protected

Show-limit

Definition at line 83 of file RecordListController.php.

◆ $siteLanguages

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

Definition at line 155 of file RecordListController.php.

◆ $table

string TYPO3\CMS\Recordlist\Controller\RecordListController::$table
protected

Which table to make extended listing for

Definition at line 65 of file RecordListController.php.