DatabaseRecordList
Class for rendering of Web>List module
This class is a specific TYPO3 Backend implementation and is not part of the TYPO3's Core API.
Attributes
- #[Autoconfigure]
- $public: true
- $shared: false
Table of Contents
Properties
- $allowedNewTables : array<string|int, string>
- Used to indicate which tables (values in the array) that can have a create-new-record link. If the array is empty, all tables are allowed.
- $calcPerms : Permission
- Some permissions.
- $CBnames : array<string|int, string>
- Tracking names of elements (for clipboard use)
- $clickMenuEnabled : bool
- If TRUE, clickmenus will be rendered
- $clickTitleMode : string
- Mode for what happens when a user clicks the title of a record.
- $clipObj : Clipboard
- Clipboard object
- $currentTable : array<string|int, array<string|int, int>>
- Used for tracking next/prev uids
- $deniedNewTables : array<string|int, string>
- Used to indicate which tables (values in the array) that cannot have a create-new-record link. If the array is empty, all tables are allowed.
- $disableSingleTableView : bool
- Disable single table view
- $displayColumnSelector : bool
- Whether the column selector should be displayed in the tables' header
- $displayRecordDownload : bool
- Whether the record download should be displayed in the tables' header
- $fieldArray : array<string|int, mixed>
- Decides the columns shown. Filled with values that refers to the keys of the data-array. $this->fieldArray[0] is the title column.
- $hideTables : string
- Tables which should not get listed
- $hideTranslations : string
- Tables which should not list their translations
- $id : int
- Page id
- $listOnlyInSingleTableMode : bool
- If TRUE, records are listed only if a specific table is selected.
- $modTSconfig : array<string|int, array<string|int, mixed>>
- $noControlPanels : bool
- If TRUE, will DISABLE all control panels in lists. (Takes precedence)
- $pageRow : array<string|int, string>
- Set to the page record (see writeTop())
- $perms_clause : string
- Page select permissions
- $returnUrl : string
- Return URL
- $searchString : string
- Search string
- $setFields : array<string|int, array<string|int, string>>
- Fields to display for the current table
- $showClipboardActions : bool
- If TRUE, will show the clipboard related actions in the table header.
- $showLimit : int
- Number of records to show
- $sortField : string
- Field, to sort list by
- $sortRev : bool
- Field, indicating to sort in reverse order.
- $table : string
- Tablename if single-table mode
- $tableList : string
- Specify a list of tables which are the only ones allowed to be displayed.
- $tableTSconfigOverTCA : array<string|int, array<string|int, string>>
- TSconfig which overwrites TCA-Settings
- $addElement_tdCssClass : array<string|int, mixed>
- Keys are fieldnames and values are td-css-classes to add in addElement();
- $backendViewFactory : BackendViewFactory
- $currentLink : array<string|int, mixed>
- Current link: array with table names and uid
- $duplicateField : string
- String, can contain the field name from a table which must have duplicate values marked.
- $duplicateStack : array<string|int, string>
- Used for tracking duplicate values of fields
- $editable : bool
- If defined the records are editable
- $eventDispatcher : EventDispatcherInterface
- $iconFactory : IconFactory
- $languagesAllowedForUser : array<string|int, mixed>
- All languages that are allowed by the user
- $moduleData : ModuleData|null
- Data of the module from the user's session
- $moduleProvider : ModuleProvider
- $overridePageIdList : array<string|int, mixed>
- Override the page ids taken into account by getPageIdConstraint()
- $overrideUrlParameters : array<string|int, mixed>
- Override/add urlparameters in listUrl() method
- $page : int
- Paging for the single table view
- $pagePermsCache : array<string|int, mixed>
- A runtime first-level cache to avoid unneeded calls to BackendUtility::getRecord()
- $possibleTranslations : array<string|int, int>
- This array contains all possible language uids, which could be translations of a record (excluding pages) in the default language
- $recordFactory : RecordFactory
- $recordIdentityMap : RecordIdentityMap|null
- $recPath_cache : array<string|int, mixed>
- Cache for record path
- $referenceCount : array<string|int, array<string|int, int>>
- [$tablename][$uid] = number of references to this record
- $request : ServerRequestInterface
- $searchableSchemaFieldsCollector : SearchableSchemaFieldsCollector
- $searchLevels : int
- Levels to search down.
- $showLocalizeColumn : array<string|int, mixed>
- $showOnlyTranslatedRecords : bool
- Only used to render translated records, used in list module to show page translations
- $spaceIcon : string
- Space icon used for alignment
- $tableDisplayOrder : array<string|int, array<string|int, mixed>>
- Array with before/after setting for tables Structure: 'tableName' => [ 'before' => ['A', ...] 'after' => [] ]
- $tcaSchemaFactory : TcaSchemaFactory
- $translateTools : TranslationConfigurationProvider
- $uriBuilder : UriBuilder
Methods
- __construct() : mixed
- addActionToCellGroup() : mixed
- add action into correct section
- generateList() : string
- Traverses the table(s) to be listed and renders the output code for each.
- getColumnsToRender() : array<string|int, mixed>
- Returns a list of all fields / columns including meta-columns such as "_REF_" or "_PATH_" which should be rendered for the database table.
- getFieldsToSelect() : array<string|int, string>
- Based on the columns which should be rendered this method returns a list of actual database fields to be selected from the query string.
- getOverridePageIdList() : array<string|int, mixed>
- getQueryBuilder() : QueryBuilder
- Returns a QueryBuilder configured to select $fields from $table where the pid is restricted depending on the current searchlevel setting.
- getTable() : string
- Creates the listing of records from a single table
- isEditable() : bool
- Check if the table (and field) is readonly or editable.
- linkWrapItems() : string
- Returns the title (based on $code) of a record (from table $table) with the proper link around (that is for 'pages'-records a link to the level of that record...)
- linkWrapTable() : string
- Returns the title (based on $label) of a table ($table) with the proper link around. For headers over tables.
- listURL() : UriInterface
- Creates the URL to this script, including all relevant GPvars Fixed GPvars are id, table, returnUrl, searchTerm, and search_levels The GPvars "sortField" and "sortRev" are also included UNLESS they are found in the $exclList variable.
- makeCheckbox() : string
- Adds the checkbox to select a single record in the listing
- makeClip() : void
- Creates the clipboard actions for a single record in the listing.
- makeControl() : string
- Creates the control panel for a single record in the listing.
- makeLocalizationPanel() : string
- Creates the localization panel
- recPath() : array<string|int, mixed>
- Returns the path for a certain pid The result is cached internally for the session, thus you can call this function as much as you like without performance problems.
- renderListHeader() : string
- Rendering the header row for a table
- renderListRow() : string
- Rendering a single row for the list
- setIsEditable() : void
- setLanguagesAllowedForUser() : DatabaseRecordList
- setModuleData() : void
- setOverridePageIdList() : void
- setOverrideUrlParameters() : void
- Set URL parameters to override or add in the listUrl() method.
- setRequest() : void
- setTableDisplayOrder() : void
- Set table display order information
- showNewRecLink() : bool
- Returns TRUE if a link for creating new records should be displayed for $table
- showOnlyTranslatedRecords() : void
- If enabled, only translations are shown (= only with l10n_parent) See the use case in RecordList class, where a list of page translations is rendered before.
- start() : void
- Initializes the list generation
- addDividerToCellGroup() : void
- Add a divider to the secondary cell group, if not already present
- addElement() : string
- Returns a table-row with the content from the fields in the input data array.
- addPageIdConstraint() : QueryBuilder
- Add conditions to the QueryBuilder object ($queryBuilder) to limit a query to a list of page IDs based on the current search level setting.
- applyPresetToColumns() : array<string|int, mixed>
- Checks if a preset exists that will modify the selected columns.
- canEditTable() : bool
- Check if user can edit records in the table
- createActionButtonCollapse() : ButtonInterface|null
- createActionButtonColumnSelector() : ButtonInterface|null
- Creates a button, which triggers a modal for the column selection
- createActionButtonDownload() : ButtonInterface|null
- createActionButtonNewRecord() : ButtonInterface|null
- If new records can be created on this page, create a button
- createShowItemTagAttributes() : string
- Creates data attributes to be handles in moddule `TYPO3/CMS/Backend/ActionDispatcher`
- generateReferenceToolTip() : string
- Generates HTML code for a Reference tooltip out of sys_refindex records you hand over
- getBackendUserAuthentication() : BackendUserAuthentication
- getFieldLabel() : string
- getLanguageService() : LanguageService
- getPagePermissionsForRecord() : Permission
- Helper method around fetching the permissions of a record, by incorporating the record information AND the current user information.
- getPossibleTranslations() : array<string|int, int>
- Fetches all possible translations for the given page
- getPreviewUriBuilder() : PreviewUriBuilder
- getReferenceCount() : int
- Gets the number of records referencing the record with the UID $uid in the table $tableName.
- getSearchableWebmounts() : array<string|int, int>
- Get all allowed mount pages to be searched in.
- getTablesToRender() : array<string|int, mixed>
- Depending on various options returns a list of all TCA tables which should be shown and are allowed by the current user.
- isClipboardFunctionalityEnabled() : bool
- Check whether the clipboard functionality is generally enabled.
- isLocalized() : bool
- isRecordCurrentBackendUser() : bool
- Check if the record represents the current backend user
- isRecordDeletePlaceholder() : bool
- Check if user is in workspace and given record is a delete placeholder
- isRowListingConditionFulfilled() : bool
- Check if all row listing conditions are fulfilled.
- languageFlag() : string
- Return the icon for the language
- linkUrlMail() : string
- Wrapping input code in link to URL or email if $testString is either.
- makeSearchString() : string
- Creates part of query for searching after a word ($this->searchString) fields in input table.
- overlayEditLockPermissions() : bool
- Check if the current record is locked by editlock. Pages are locked if their editlock flag is set, records are if they are locked themselves or if the page they are on is locked (a page’s editlock is transitive for its content elements).
- renderCheckboxActions() : string
- Render convenience actions, such as "check all"
- renderListNavigation() : string
- Creates a page browser for tables with many records
- renderListTableFieldHeader() : string
- renderMultiRecordSelectionActions() : string
- Render the multi record selection actions, which are shown as soon as one record is selected
Properties
$allowedNewTables
Used to indicate which tables (values in the array) that can have a create-new-record link. If the array is empty, all tables are allowed.
        public
            array<string|int, string>
    $allowedNewTables
     = []
    
    
    
    
    
$calcPerms
Some permissions.
        public
            Permission
    $calcPerms
    
        ..
$CBnames
Tracking names of elements (for clipboard use)
        public
            array<string|int, string>
    $CBnames
     = []
    
    
    
    
    
$clickMenuEnabled
If TRUE, clickmenus will be rendered
        public
            bool
    $clickMenuEnabled
     = true
    
    
    
    
    
$clickTitleMode
Mode for what happens when a user clicks the title of a record.
        public
            string
    $clickTitleMode
     = ''
    
    
    
    
    
$clipObj
Clipboard object
        public
            Clipboard
    $clipObj
    
    
    
    
    
    
$currentTable
Used for tracking next/prev uids
        public
            array<string|int, array<string|int, int>>
    $currentTable
     = []
    
    
    
    
    
$deniedNewTables
Used to indicate which tables (values in the array) that cannot have a create-new-record link. If the array is empty, all tables are allowed.
        public
            array<string|int, string>
    $deniedNewTables
     = []
    
    
    
    
    
$disableSingleTableView
Disable single table view
        public
            bool
    $disableSingleTableView
     = false
    
    
    
    
    
$displayColumnSelector
Whether the column selector should be displayed in the tables' header
        public
            bool
    $displayColumnSelector
     = true
    
    
    
                        $displayRecordDownload
Whether the record download should be displayed in the tables' header
        public
            bool
    $displayRecordDownload
     = true
    
    
    
                        $fieldArray
Decides the columns shown. Filled with values that refers to the keys of the data-array. $this->fieldArray[0] is the title column.
        public
            array<string|int, mixed>
    $fieldArray
     = []
    
    
    
    
    
$hideTables
Tables which should not get listed
        public
            string
    $hideTables
     = ''
    
    
    
    
    
$hideTranslations
Tables which should not list their translations
        public
            string
    $hideTranslations
     = ''
    
    
    
    
    
$id
Page id
        public
            int
    $id
    
    
    
    
    
    
$listOnlyInSingleTableMode
If TRUE, records are listed only if a specific table is selected.
        public
            bool
    $listOnlyInSingleTableMode
     = false
    
    
    
    
    
$modTSconfig
        public
            array<string|int, array<string|int, mixed>>
    $modTSconfig
    
    
        Module configuration
$noControlPanels
If TRUE, will DISABLE all control panels in lists. (Takes precedence)
        public
            bool
    $noControlPanels
     = false
    
    
    
    
    
$pageRow
Set to the page record (see writeTop())
        public
            array<string|int, string>
    $pageRow
     = []
    
    
    
    
    
$perms_clause
Page select permissions
        public
            string
    $perms_clause
     = ''
    
    
    
    
    
$returnUrl
Return URL
        public
            string
    $returnUrl
     = ''
    
    
    
    
    
$searchString
Search string
        public
            string
    $searchString
     = ''
    
    
    
    
    
$setFields
Fields to display for the current table
        public
            array<string|int, array<string|int, string>>
    $setFields
     = []
    
    
    
    
    
$showClipboardActions
If TRUE, will show the clipboard related actions in the table header.
        public
            bool
    $showClipboardActions
     = false
    
    
    
    
    
$showLimit
Number of records to show
        public
            int
    $showLimit
     = 0
    
    
    
    
    
$sortField
Field, to sort list by
        public
            string
    $sortField
     = ''
    
    
    
    
    
$sortRev
Field, indicating to sort in reverse order.
        public
            bool
    $sortRev
     = false
    
    
    
    
    
$table
Tablename if single-table mode
        public
            string
    $table
     = ''
    
    
    
    
    
$tableList
Specify a list of tables which are the only ones allowed to be displayed.
        public
            string
    $tableList
     = ''
    
    
    
    
    
$tableTSconfigOverTCA
TSconfig which overwrites TCA-Settings
        public
            array<string|int, array<string|int, string>>
    $tableTSconfigOverTCA
     = []
    
    
    
    
    
$addElement_tdCssClass
Keys are fieldnames and values are td-css-classes to add in addElement();
        protected
            array<string|int, mixed>
    $addElement_tdCssClass
     = []
    
    
    
    
    
$backendViewFactory read-only
        protected
            BackendViewFactory
    $backendViewFactory
    
    
    
    
    
    
$currentLink
Current link: array with table names and uid
        protected
            array<string|int, mixed>
    $currentLink
     = []
    
    
    
    
    
$duplicateField
String, can contain the field name from a table which must have duplicate values marked.
        protected
            string
    $duplicateField
     = ''
    
    
    
    
    
$duplicateStack
Used for tracking duplicate values of fields
        protected
            array<string|int, string>
    $duplicateStack
     = []
    
    
    
    
    
$editable
If defined the records are editable
        protected
            bool
    $editable
     = true
    
    
    
    
    
$eventDispatcher read-only
        protected
            EventDispatcherInterface
    $eventDispatcher
    
    
    
    
    
    
$iconFactory read-only
        protected
            IconFactory
    $iconFactory
    
    
    
    
    
    
$languagesAllowedForUser
All languages that are allowed by the user
        protected
            array<string|int, mixed>
    $languagesAllowedForUser
     = []
        This is used for the translation handling of pages only.
$moduleData
Data of the module from the user's session
        protected
            ModuleData|null
    $moduleData
     = null
    
    
    
    
    
$moduleProvider read-only
        protected
            ModuleProvider
    $moduleProvider
    
    
    
    
    
    
$overridePageIdList
Override the page ids taken into account by getPageIdConstraint()
        protected
            array<string|int, mixed>
    $overridePageIdList
     = []
    
    
    
    
    
$overrideUrlParameters
Override/add urlparameters in listUrl() method
        protected
            array<string|int, mixed>
    $overrideUrlParameters
     = []
    
    
    
    
    
$page
Paging for the single table view
        protected
            int
    $page
     = 0
    
    
    
    
    
$pagePermsCache
A runtime first-level cache to avoid unneeded calls to BackendUtility::getRecord()
        protected
            array<string|int, mixed>
    $pagePermsCache
     = []
    
    
    
    
    
$possibleTranslations
This array contains all possible language uids, which could be translations of a record (excluding pages) in the default language
        protected
            array<string|int, int>
    $possibleTranslations
     = []
        It mainly depends on the current pageUid. Translations are possible, depending on
- the site config
- already translated page records
$recordFactory read-only
        protected
            RecordFactory
    $recordFactory
    
    
    
    
    
    
$recordIdentityMap
        protected
            RecordIdentityMap|null
    $recordIdentityMap
     = null
    
    
    
    
    
$recPath_cache
Cache for record path
        protected
            array<string|int, mixed>
    $recPath_cache
     = []
    
    
    
    
    
$referenceCount
[$tablename][$uid] = number of references to this record
        protected
            array<string|int, array<string|int, int>>
    $referenceCount
     = []
    
    
    
    
    
$request
        protected
            ServerRequestInterface
    $request
    
    
    
    
    
    
$searchableSchemaFieldsCollector read-only
        protected
            SearchableSchemaFieldsCollector
    $searchableSchemaFieldsCollector
    
    
    
    
    
    
$searchLevels
Levels to search down.
        protected
            int
    $searchLevels
     = 0
    
    
    
    
    
$showLocalizeColumn
        protected
            array<string|int, mixed>
    $showLocalizeColumn
     = []
    
    
    
    
    
$showOnlyTranslatedRecords
Only used to render translated records, used in list module to show page translations
        protected
            bool
    $showOnlyTranslatedRecords
     = false
    
    
    
    
    
$spaceIcon
Space icon used for alignment
        protected
            string
    $spaceIcon
    
    
    
    
    
    
$tableDisplayOrder
Array with before/after setting for tables Structure: 'tableName' => [ 'before' => ['A', ...] 'after' => [] ]
        protected
            array<string|int, array<string|int, mixed>>
    $tableDisplayOrder
     = []
    
    
    
    
    
$tcaSchemaFactory read-only
        protected
            TcaSchemaFactory
    $tcaSchemaFactory
    
    
    
    
    
    
$translateTools read-only
        protected
            TranslationConfigurationProvider
    $translateTools
    
    
    
    
    
    
$uriBuilder read-only
        protected
            UriBuilder
    $uriBuilder
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(IconFactory $iconFactory, UriBuilder $uriBuilder, TranslationConfigurationProvider $translateTools, EventDispatcherInterface $eventDispatcher, BackendViewFactory $backendViewFactory, ModuleProvider $moduleProvider, SearchableSchemaFieldsCollector $searchableSchemaFieldsCollector, TcaSchemaFactory $tcaSchemaFactory, RecordFactory $recordFactory) : mixed
    Parameters
- $iconFactory : IconFactory
- $uriBuilder : UriBuilder
- $translateTools : TranslationConfigurationProvider
- $eventDispatcher : EventDispatcherInterface
- $backendViewFactory : BackendViewFactory
- $moduleProvider : ModuleProvider
- $searchableSchemaFieldsCollector : SearchableSchemaFieldsCollector
- $tcaSchemaFactory : TcaSchemaFactory
- $recordFactory : RecordFactory
addActionToCellGroup()
add action into correct section
    public
                    addActionToCellGroup(array<string|int, mixed> &$cells, string $action, string $actionKey) : mixed
    Parameters
- $cells : array<string|int, mixed>
- $action : string
- $actionKey : string
generateList()
Traverses the table(s) to be listed and renders the output code for each.
    public
                    generateList() : string
    Return values
string —Rendered HTML
getColumnsToRender()
Returns a list of all fields / columns including meta-columns such as "_REF_" or "_PATH_" which should be rendered for the database table.
    public
                    getColumnsToRender(string $table, bool $includeMetaColumns[, string $selectedPreset = '' ]) : array<string|int, mixed>
    Parameters
- $table : string
- $includeMetaColumns : bool
- $selectedPreset : string = ''
Return values
array<string|int, mixed>getFieldsToSelect()
Based on the columns which should be rendered this method returns a list of actual database fields to be selected from the query string.
    public
                    getFieldsToSelect(string $table, array<string|int, mixed> $columnsToRender) : array<string|int, string>
    Parameters
- $table : string
- $columnsToRender : array<string|int, mixed>
Tags
Return values
array<string|int, string> —a list of all database table fields
getOverridePageIdList()
    public
                    getOverridePageIdList() : array<string|int, mixed>
    Return values
array<string|int, mixed>getQueryBuilder()
Returns a QueryBuilder configured to select $fields from $table where the pid is restricted depending on the current searchlevel setting.
    public
                    getQueryBuilder(string $table[, array<string|int, string> $fields = ['*'] ][, bool $addSorting = true ][, int $firstResult = 0 ][, int $maxResult = 0 ]) : QueryBuilder
    Parameters
- $table : string
- 
                    Table name 
- $fields : array<string|int, string> = ['*']
- 
                    Field list to select, * for all 
- $addSorting : bool = true
- $firstResult : int = 0
- $maxResult : int = 0
Return values
QueryBuildergetTable()
Creates the listing of records from a single table
    public
                    getTable(string $table) : string
    Parameters
- $table : string
- 
                    Table name 
Tags
Return values
string —HTML table with the listing for the record.
isEditable()
Check if the table (and field) is readonly or editable.
    public
                    isEditable(string $table[, string $field = '' ]) : bool
    Parameters
- $table : string
- $field : string = ''
Return values
boollinkWrapItems()
Returns the title (based on $code) of a record (from table $table) with the proper link around (that is for 'pages'-records a link to the level of that record...)
    public
                    linkWrapItems(string $table, int $uid, string $code, RecordInterface $record) : string
    Parameters
- $table : string
- $uid : int
- $code : string
- 
                    Item title (not htmlspecialchars()'ed yet) 
- $record : RecordInterface
Return values
string —The item title. Ready for HTML output (is htmlspecialchars()'ed)
linkWrapTable()
Returns the title (based on $label) of a table ($table) with the proper link around. For headers over tables.
    public
                    linkWrapTable(string $table, string $label) : string
    The link will cause the display of all extended mode or not for the table.
Parameters
- $table : string
- 
                    Table name 
- $label : string
- 
                    Table label 
Return values
string —The linked table label
listURL()
Creates the URL to this script, including all relevant GPvars Fixed GPvars are id, table, returnUrl, searchTerm, and search_levels The GPvars "sortField" and "sortRev" are also included UNLESS they are found in the $exclList variable.
    public
                    listURL([string|int|null $altId = null ][, string|null $table = null ][, string|array<string|int, mixed>|null $exclList = null ]) : UriInterface
    Parameters
- $altId : string|int|null = null
- 
                    Alternative id value. Enter blank string for the current id ($this->id) 
- $table : string|null = null
- 
                    Table name to display. Use null for the current table. 
- $exclList : string|array<string|int, mixed>|null = null
- 
                    List of fields NOT to include ("sortField", "sortRev" or "pointer") 
Return values
UriInterfacemakeCheckbox()
Adds the checkbox to select a single record in the listing
    public
                    makeCheckbox(string $table, RecordInterface $record) : string
    Parameters
- $table : string
- 
                    The table 
- $record : RecordInterface
Return values
string —The checkbox for the record
makeClip()
Creates the clipboard actions for a single record in the listing.
    public
                    makeClip(string $table, RecordInterface $record, array<string|int, mixed> &$cells) : void
    Parameters
- $table : string
- 
                    The table 
- $record : RecordInterface
- 
                    The record for which to create the clipboard actions 
- $cells : array<string|int, mixed>
- 
                    The already defined cells from makeControl 
makeControl()
Creates the control panel for a single record in the listing.
    public
                    makeControl(string $table, RecordInterface $record) : string
    Parameters
- $table : string
- 
                    The table 
- $record : RecordInterface
Tags
Return values
string —HTML table with the control panel (unless disabled)
makeLocalizationPanel()
Creates the localization panel
    public
                    makeLocalizationPanel(string $table, RecordInterface $record, array<string|int, mixed> $translations) : string
    Parameters
- $table : string
- $record : RecordInterface
- $translations : array<string|int, mixed>
Return values
stringrecPath()
Returns the path for a certain pid The result is cached internally for the session, thus you can call this function as much as you like without performance problems.
    public
                    recPath(int $pid) : array<string|int, mixed>
    Parameters
- $pid : int
- 
                    The page id for which to get the path 
Return values
array<string|int, mixed> —The path.
renderListHeader()
Rendering the header row for a table
    public
                    renderListHeader(string $table, array<string|int, int> $currentIdList) : string
    Parameters
- $table : string
- 
                    Table name 
- $currentIdList : array<string|int, int>
- 
                    Array of the currently displayed uids of the table 
Tags
Return values
string —Header table row
renderListRow()
Rendering a single row for the list
    public
                    renderListRow(string $table, RecordInterface $record, int $indent, array<string|int, mixed> $translations, bool $translationEnabled) : string
    Parameters
- $table : string
- 
                    Table name 
- $record : RecordInterface
- $indent : int
- 
                    Indent from left. 
- $translations : array<string|int, mixed>
- 
                    Array of already existing translations for the current record 
- $translationEnabled : bool
- 
                    Whether the record can be translated 
Tags
Return values
string —Table row for the element
setIsEditable()
    public
                    setIsEditable(bool $isEditable) : void
    Parameters
- $isEditable : bool
setLanguagesAllowedForUser()
    public
                    setLanguagesAllowedForUser(array<string|int, mixed> $languagesAllowedForUser) : DatabaseRecordList
    Parameters
- $languagesAllowedForUser : array<string|int, mixed>
Return values
DatabaseRecordListsetModuleData()
    public
                    setModuleData(ModuleData $moduleData) : void
    Parameters
- $moduleData : ModuleData
setOverridePageIdList()
    public
                    setOverridePageIdList(array<string|int, int>|array<string|int, mixed> $overridePageIdList) : void
    Parameters
- $overridePageIdList : array<string|int, int>|array<string|int, mixed>
setOverrideUrlParameters()
Set URL parameters to override or add in the listUrl() method.
    public
                    setOverrideUrlParameters(array<string|int, string> $urlParameters, ServerRequestInterface $request) : void
    Parameters
- $urlParameters : array<string|int, string>
- $request : ServerRequestInterface
setRequest()
    public
                    setRequest(ServerRequestInterface $request) : void
    Parameters
- $request : ServerRequestInterface
setTableDisplayOrder()
Set table display order information
    public
                    setTableDisplayOrder(array<string|int, mixed> $orderInformation) : void
    Structure of $orderInformation: 'tableName' => [ 'before' => // comma-separated string list or array of table names 'after' => // comma-separated string list or array of table names ]
Parameters
- $orderInformation : array<string|int, mixed>
Tags
showNewRecLink()
Returns TRUE if a link for creating new records should be displayed for $table
    public
                    showNewRecLink(string $table) : bool
    Parameters
- $table : string
- 
                    Table name 
Return values
bool —Returns TRUE if a link for creating new records should be displayed for $table
showOnlyTranslatedRecords()
If enabled, only translations are shown (= only with l10n_parent) See the use case in RecordList class, where a list of page translations is rendered before.
    public
                    showOnlyTranslatedRecords(bool $showOnlyTranslatedRecords) : void
    Parameters
- $showOnlyTranslatedRecords : bool
start()
Initializes the list generation
    public
                    start(int $id, string $table, int $pointer[, string $search = '' ][, int $levels = 0 ][, int $showLimit = 0 ]) : void
    Parameters
- $id : int
- 
                    Page id for which the list is rendered. Must be >= 0 
- $table : string
- 
                    Tablename - if extended mode where only one table is listed at a time. 
- $pointer : int
- 
                    Browsing pointer. 
- $search : string = ''
- 
                    Search word, if any 
- $levels : int = 0
- 
                    Number of levels to search down the page tree 
- $showLimit : int = 0
- 
                    Limit of records to be listed. 
addDividerToCellGroup()
Add a divider to the secondary cell group, if not already present
    protected
                    addDividerToCellGroup(array<string|int, mixed> &$cells) : void
    Parameters
- $cells : array<string|int, mixed>
addElement()
Returns a table-row with the content from the fields in the input data array.
    protected
                    addElement(array<string|int, mixed> $data[, string $rowParams = '' ][, string $colType = 'td' ]) : string
    OBS: $this->fieldArray MUST be set! (represents the list of fields to display)
Parameters
- $data : array<string|int, mixed>
- 
                    Is the data array, record with the fields. Notice: These fields are (currently) NOT htmlspecialchar'ed before being wrapped in -tags 
- $rowParams : string = ''
Is insert in the -tags. Must carry a ' ' as first character 
- $colType : string = 'td'
Defines the tag being used for the columns. Default is td. Return valuesstring —HTML content for the table row addPageIdConstraint()Add conditions to the QueryBuilder object ($queryBuilder) to limit a query to a list of page IDs based on the current search level setting. protected addPageIdConstraint(string $tableName, QueryBuilder $queryBuilder, int $searchLevels) : QueryBuilderParameters- $tableName : string
- $queryBuilder : QueryBuilder
- $searchLevels : int
 Return valuesQueryBuilder —Modified QueryBuilder object applyPresetToColumns()Checks if a preset exists that will modify the selected columns. protected applyPresetToColumns(string $table, string $selectedPreset, array<string|int, mixed> $columnsToRender) : array<string|int, mixed>Parameters- $table : string
- $selectedPreset : string
- $columnsToRender : array<string|int, mixed>
 Internal Return valuesarray<string|int, mixed>canEditTable()Check if user can edit records in the table protected canEditTable(string $table) : boolParameters- $table : string
 Return valuesboolcreateActionButtonCollapse()protected createActionButtonCollapse(string $table) : ButtonInterface|nullParameters- $table : string
 Return valuesButtonInterface|nullcreateActionButtonColumnSelector()Creates a button, which triggers a modal for the column selection protected createActionButtonColumnSelector(string $table) : ButtonInterface|nullParameters- $table : string
 Return valuesButtonInterface|nullcreateActionButtonDownload()protected createActionButtonDownload(string $table, int $totalItems) : ButtonInterface|nullParameters- $table : string
- $totalItems : int
 Return valuesButtonInterface|nullcreateActionButtonNewRecord()If new records can be created on this page, create a button protected createActionButtonNewRecord(string $table) : ButtonInterface|nullParameters- $table : string
 Return valuesButtonInterface|nullcreateShowItemTagAttributes()Creates data attributes to be handles in moddule `TYPO3/CMS/Backend/ActionDispatcher` protected createShowItemTagAttributes(string $arguments) : stringParameters- $arguments : string
 Return valuesstringgenerateReferenceToolTip()Generates HTML code for a Reference tooltip out of sys_refindex records you hand over protected generateReferenceToolTip(string $table, int $uid) : stringParameters- $table : string
- $uid : int
 Return valuesstringgetBackendUserAuthentication()protected getBackendUserAuthentication() : BackendUserAuthenticationReturn valuesBackendUserAuthenticationgetFieldLabel()protected getFieldLabel(TcaSchema $schema, string $field) : stringParameters- $schema : TcaSchema
- $field : string
 Return valuesstringgetLanguageService()protected getLanguageService() : LanguageServiceReturn valuesLanguageServicegetPagePermissionsForRecord()Helper method around fetching the permissions of a record, by incorporating the record information AND the current user information. protected getPagePermissionsForRecord(RecordInterface $record) : PermissionParameters- $record : RecordInterface
 Return valuesPermissiongetPossibleTranslations()Fetches all possible translations for the given page protected getPossibleTranslations(int $pageUid) : array<string|int, int>This depends on the site config and the current translations of the page record It is used to set the possible translations for all records excluding pages Parameters- $pageUid : int
 Return valuesarray<string|int, int>getPreviewUriBuilder()protected getPreviewUriBuilder(string $table, RecordInterface $record) : PreviewUriBuilderParameters- $table : string
- $record : RecordInterface
 Return valuesPreviewUriBuildergetReferenceCount()Gets the number of records referencing the record with the UID $uid in the table $tableName. protected getReferenceCount(string $tableName, int $uid) : intParameters- $tableName : string
- $uid : int
 Return valuesint —The number of references to record $uid in table getSearchableWebmounts()Get all allowed mount pages to be searched in. protected getSearchableWebmounts(int $id, int $depth) : array<string|int, int>Parameters- $id : int
- 
                    Page id 
- $depth : int
- 
                    Depth to go down 
 Return valuesarray<string|int, int>getTablesToRender()Depending on various options returns a list of all TCA tables which should be shown and are allowed by the current user. protected getTablesToRender() : array<string|int, mixed>Return valuesarray<string|int, mixed> —a list of all TCA tables isClipboardFunctionalityEnabled()Check whether the clipboard functionality is generally enabled. protected isClipboardFunctionalityEnabled(string $table[, RecordInterface|null $record = null ]) : boolIn case a row is given, this checks if the record is neither a "delete placeholder", nor a translation, nor a version Parameters- $table : string
- $record : RecordInterface|null = null
 Return valuesboolisLocalized()protected isLocalized(RecordInterface $record) : boolParameters- $record : RecordInterface
 Return valuesboolisRecordCurrentBackendUser()Check if the record represents the current backend user protected isRecordCurrentBackendUser(RecordInterface $record) : boolParameters- $record : RecordInterface
 Return valuesboolisRecordDeletePlaceholder()Check if user is in workspace and given record is a delete placeholder protected isRecordDeletePlaceholder(RecordInterface $record) : boolParameters- $record : RecordInterface
 Return valuesboolisRowListingConditionFulfilled()Check if all row listing conditions are fulfilled. protected isRowListingConditionFulfilled(RecordInterface $record) : boolThis function serves as a dummy method to be overridden in extending classes. Parameters- $record : RecordInterface
- 
                    Record 
 Return valuesbool —True, if all conditions are fulfilled. languageFlag()Return the icon for the language protected languageFlag(string $table, RecordInterface $record) : stringParameters- $table : string
- $record : RecordInterface
 Return valuesstring —Language icon linkUrlMail()Wrapping input code in link to URL or email if $testString is either. protected linkUrlMail(string $code, string $testString) : stringParameters- $code : string
- 
                    code to wrap 
- $testString : string
- 
                    String which is tested for being a URL or email and which will be used for the link if so. 
 Return valuesstring —Link-Wrapped $code value, if $testString was URL or email. makeSearchString()Creates part of query for searching after a word ($this->searchString) fields in input table. protected makeSearchString(string $table, int $currentPid, QueryBuilder $queryBuilder) : stringParameters- $table : string
- 
                    Table, in which the fields are being searched. 
- $currentPid : int
- 
                    Page id for the possible search limit 
- $queryBuilder : QueryBuilder
 Return valuesstring —Returns part of WHERE-clause for searching, if applicable. overlayEditLockPermissions()Check if the current record is locked by editlock. Pages are locked if their editlock flag is set, records are if they are locked themselves or if the page they are on is locked (a page’s editlock is transitive for its content elements). protected overlayEditLockPermissions(string $table[, RecordInterface|null $record = null ][, bool $editPermission = true ]) : boolParameters- $table : string
- $record : RecordInterface|null = null
- $editPermission : bool = true
 Return valuesboolrenderCheckboxActions()Render convenience actions, such as "check all" protected renderCheckboxActions() : stringReturn valuesstring —HTML markup for the checkbox actions renderListNavigation()Creates a page browser for tables with many records protected renderListNavigation(string $table, int $totalItems, int $itemsPerPage) : stringParameters- $table : string
- $totalItems : int
- $itemsPerPage : int
 Return valuesstring —Navigation HTML renderListTableFieldHeader()protected renderListTableFieldHeader(string $table, string $field, array<string|int, mixed> $currentIdList) : stringParameters- $table : string
- $field : string
- $currentIdList : array<string|int, mixed>
 Return valuesstringrenderMultiRecordSelectionActions()Render the multi record selection actions, which are shown as soon as one record is selected protected renderMultiRecordSelectionActions(string $table, array<string|int, mixed> $currentIdList) : stringParameters- $table : string
- $currentIdList : array<string|int, mixed>
 Return valuesstringSearch results