ElementBrowserRecordList

class \TYPO3\CMS\Backend\RecordList\ElementBrowserRecordList

Extends
DatabaseRecordList

Displays the page tree for browsing database records.

Table of Contents

Properties

$allowedNewTables  : 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  : 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  : int[][]
Used for tracking next/prev uids
$deniedNewTables  : 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
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[]
$noControlPanels  : bool
If TRUE, will DISABLE all control panels in lists. (Takes precedence)
$pageRow  : string[]
Set to the page record (see writeTop())
$perms_clause  : string
Page select permissions
$returnUrl  : string
Return URL
$searchString  : string
Search string
$setFields  : 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[]
TSconfig which overwrites TCA-Settings
$addElement_tdCssClass  : array
Keys are fieldnames and values are td-css-classes to add in addElement();
$backendUserCache  : array
A runtime first-level cache to avoid unneeded calls to BackendUtility::getRecord()
$currentLink  : array
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  : string[]
Used for tracking duplicate values of fields
$editable  : bool
If defined the records are editable
$eventDispatcher  : EventDispatcherInterface
$iconFactory  : IconFactory
$languagesAllowedForUser  : array
All languages that are allowed by the user
$moduleData  : array
Module data
$overridePageIdList  : array
Override the page ids taken into account by getPageIdConstraint()
$overrideUrlParameters  : array
Override/add urlparameters in listUrl() method
$page  : int
Paging for the single table view
$pagePermsCache  : array
A runtime first-level cache to avoid unneeded calls to BackendUtility::getRecord()
$possibleTranslations  : int[]
This array contains all possible language uids, which could be translations of a record (excluding pages) in the default language
$recPath_cache  : array
Cache for record path
$referenceCount  : int[][]
[$tablename][$uid] = number of references to this record
$relatingField  : string
Field name of the field pointing to this element browser
$relatingTable  : string
Table name of the field pointing to this element browser
$searchLevels  : int
Levels to search down.
$showLocalizeColumn  : array
$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[]
Array with before/after setting for tables Structure: 'tableName' => [ 'before' => ['A', ...] 'after' => [] ]
$translateTools  : TranslationConfigurationProvider
$uriBuilder  : UriBuilder

Methods

__construct()  : mixed
addActionToCellGroup()  : mixed
add action into correct section
addSortLink()  : string
Creates a sort-by link on the input string ($code).
generateList()  : string
Traverses the table(s) to be listed and renders the output code for each.
getColumnsToRender()  : array
Returns a list of all fields / columns including meta columns such as "_REF_" or "_PATH_" which should be rendered for the databsae table.
getFieldsToSelect()  : 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
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 is readonly or editable
linkUrlMail()  : string
Wrapping input code in link to URL or email if $testString is either.
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()  : string
Creates the URL to this script, including all relevant GPvars Fixed GPvars are id, table, returnUrl, search_field, 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
makeSearchString()  : string
Creates part of query for searching after a word ($this->searchString) fields in input table.
recPath()  : array
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
setDispFields()  : void
Fetching the user defined fields to be displayed.
setIsEditable()  : void
setLanguagesAllowedForUser()  : DatabaseRecordList
setModuleData()  : void
Set the module data
setOverridePageIdList()  : mixed
setOverrideUrlParameters()  : mixed
Set URL parameters to override or add in the listUrl() method.
setRelatingTableAndField()  : mixed
Set which pointing field (in the TCEForm) we are currently rendering the element browser for
setTableDisplayOrder()  : mixed
Set table display order information
showNewRecLink()  : bool
Returns TRUE if a link for creating new records should be displayed for $table
showOnlyTranslatedRecords()  : mixed
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()  : mixed
Initializes the list generation
addDividerToCellGroup()  : void
Add a divider to the secondary cell gorup, 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.
columnSelector()  : string
Creates a button, which triggers a modal for the column selection
createDownloadButtonForTable()  : string
createNewRecordButton()  : string
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
getBackendUserInformation()  : string
Helper method around fetching a "cruser_id" information for a record, with a cache, so the same information does not have to be processed for the same user over and over again.
getFluidTemplateObject()  : StandaloneView
Returns a new standalone view, shorthand function
getLanguageService()  : LanguageService
Returns the language service
getNoViewWithDokTypes()  : array
Returns the configuration of mod.web_list.noViewWithDokTypes or the default value 254 (Sys Folders) and 255 (Recycler), if not set.
getPagePermissionsForRecord()  : Permission
Helper method around fetching the permissions of a record, by incorporating the record information AND the current user information.
getPossibleTranslations()  : int[]
Fetches all possible translations for the given page
getPreviewUriBuilder()  : PreviewUriBuilder
Get preview link for pages or tt_content records
getReferenceCount()  : int
Gets the number of records referencing the record with the UID $uid in the table $tableName.
getSearchableWebmounts()  : int[]
Get all allowed mount pages to be searched in.
getTablesToRender()  : array
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
Check if a given record is a localization
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
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
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 string[] $allowedNewTables = []

$CBnames

Tracking names of elements (for clipboard use)

public 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 = ''

$currentTable

Used for tracking next/prev uids

public 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 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 $fieldArray = []

$hideTables

Tables which should not get listed

public string $hideTables = ''

$hideTranslations

Tables which should not list their translations

public string $hideTranslations = ''

$listOnlyInSingleTableMode

If TRUE, records are listed only if a specific table is selected.

public bool $listOnlyInSingleTableMode = false

$modTSconfig

public array[] $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 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 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

$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[] $tableTSconfigOverTCA = []

$addElement_tdCssClass

Keys are fieldnames and values are td-css-classes to add in addElement();

protected array $addElement_tdCssClass = []

$backendUserCache

A runtime first-level cache to avoid unneeded calls to BackendUtility::getRecord()

protected array $backendUserCache = []

Current link: array with table names and uid

protected array $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 string[] $duplicateStack = []

$editable

If defined the records are editable

protected bool $editable = true

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

$languagesAllowedForUser

All languages that are allowed by the user

protected array $languagesAllowedForUser = []

This is used for the translation handling of pages only.

$moduleData

Module data

protected array $moduleData = []

$overridePageIdList

Override the page ids taken into account by getPageIdConstraint()

protected array $overridePageIdList = []

$overrideUrlParameters

Override/add urlparameters in listUrl() method

protected array $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 $pagePermsCache = []

$possibleTranslations

This array contains all possible language uids, which could be translations of a record (excluding pages) in the default language

protected int[] $possibleTranslations = []

It mainly depends on the current pageUid. Translations are possible, depending on

  • the site config
  • already translated page records

$recPath_cache

Cache for record path

protected array $recPath_cache = []

$referenceCount

[$tablename][$uid] = number of references to this record

protected int[][] $referenceCount = []

$relatingField

Field name of the field pointing to this element browser

protected string $relatingField

$relatingTable

Table name of the field pointing to this element browser

protected string $relatingTable

$searchLevels

Levels to search down.

protected int $searchLevels = 0

$showLocalizeColumn

protected array $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[] $tableDisplayOrder = []

Methods

addActionToCellGroup()

add action into correct section

public addActionToCellGroup(array &$cells, string $action, string $actionKey) : mixed

Parameters

$cells : array
$action : string
$actionKey : string

Creates a sort-by link on the input string ($code).

public addSortLink(string $code, string $field, string $table) : string

It will automatically detect if sorting should be ascending or descending depending on $this->sortRev. Also some fields will not be possible to sort (including if single-table-view is disabled).

Parameters

$code : string

The string to link (text)

$field : string

The fieldname represented by the title ($code)

$table : string

Table name

Return values

string —

Linked $code variable

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 databsae table.

public getColumnsToRender(string $table, bool $includeMetaColumns) : array

Parameters

$table : string
$includeMetaColumns : bool

Return values

array

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 $columnsToRender) : string[]

Parameters

$table : string
$columnsToRender : array

Return values

string[] —

a list of all database table fields

getOverridePageIdList()

public getOverridePageIdList() : array

Return values

array

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, int $pageId, string[] $additionalConstraints, string[] $fields, bool $addSorting, int $firstResult, int $maxResult) : QueryBuilder

Parameters

$table : string

Table name

$pageId : int

Page id Only used to build the search constraints, getPageIdConstraint() used for restrictions

$additionalConstraints : string[]

Additional part for where clause

$fields : string[]

Field list to select, * for all

$addSorting : bool
$firstResult : int
$maxResult : int

Return values

QueryBuilder

getTable()

Creates the listing of records from a single table

public getTable(string $table, int $id) : string

Parameters

$table : string

Table name

$id : int

Page id

Tags

throws
UnexpectedValueException

Return values

string —

HTML table with the listing for the record.

isEditable()

Check if the table is readonly or editable

public isEditable(string $table) : bool

Parameters

$table : string

Return values

bool

linkUrlMail()

Wrapping input code in link to URL or email if $testString is either.

public linkUrlMail(string $code, string $testString) : string

Parameters

$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.

Tags

todo

Change signature to (string $code, string $testString): string as breaking change in v12. Also protect method.

Return values

string —

Link-Wrapped $code value, if $testString was URL or email.

linkWrapItems()

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, array $row) : string

Parameters

$table : string

Table name

$uid : int

UID (not used here)

$code : string

Title string

$row : array

Records array (from table name)

Return values

string

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, search_field, and search_levels The GPvars "sortField" and "sortRev" are also included UNLESS they are found in the $exclList variable.

public listURL([string $altId = '' ][, string $table = '-1' ][, string $exclList = '' ]) : string

Parameters

$altId : string = ''

Alternative id value. Enter blank string for the current id ($this->id)

$table : string = '-1'

Table name to display. Enter "-1" for the current table.

$exclList : string = ''

Comma separated list of fields NOT to include ("sortField", "sortRev" or "pointer")

Return values

string —

URL

makeCheckbox()

Adds the checkbox to select a single record in the listing

public makeCheckbox(string $table, array $row) : string

Parameters

$table : string

The table

$row : array

The record for which to make the checkbox

Return values

string —

The checkbox for the record

makeClip()

Creates the clipboard actions for a single record in the listing.

public makeClip(string $table, array $row, array &$cells) : void

Parameters

$table : string

The table

$row : array

The record for which to create the clipboard actions

$cells : array

The already defined cells from makeControl

makeControl()

Creates the control panel for a single record in the listing.

public makeControl(string $table, array $row) : string

Parameters

$table : string

The table

$row : array

The record for which to make the control panel.

Tags

throws
UnexpectedValueException

Return values

string —

HTML table with the control panel (unless disabled)

makeLocalizationPanel()

Creates the localization panel

public makeLocalizationPanel(string $table, array $row, array $translations) : string

Parameters

$table : string

The table

$row : array

The record for which to make the localization panel.

$translations : array

Return values

string

makeSearchString()

Creates part of query for searching after a word ($this->searchString) fields in input table.

public makeSearchString(string $table, int $currentPid, QueryBuilder $queryBuilder) : string

Parameters

$table : string

Table, in which the fields are being searched.

$currentPid : int

Page id for the possible search limit

$queryBuilder : QueryBuilder

Return values

string —

Returns part of WHERE-clause for searching, if applicable.

recPath()

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

Parameters

$pid : int

The page id for which to get the path

Return values

array —

The path.

renderListHeader()

Rendering the header row for a table

public renderListHeader(string $table, int[] $currentIdList) : string

Parameters

$table : string

Table name

$currentIdList : int[]

Array of the currently displayed uids of the table

Tags

throws
UnexpectedValueException
see
getTable()

Return values

string —

Header table row

renderListRow()

Rendering a single row for the list

public renderListRow(string $table, array $row, int $indent, array $translations, bool $translationEnabled) : string

Parameters

$table : string

Table name

$row : array

Current record

$indent : int

Indent from left.

$translations : array

Array of already existing translations for the current record

$translationEnabled : bool

Whether the record can be translated

Tags

see
getTable()

Return values

string —

Table row for the element

setDispFields()

Fetching the user defined fields to be displayed.

public setDispFields() : void

Sets the internal variable $this->setFields.

setIsEditable()

public setIsEditable(bool $isEditable) : void

Parameters

$isEditable : bool

setModuleData()

Set the module data

public setModuleData([array $moduleData = [] ]) : void

See BackendUtility::getModuleData

Parameters

$moduleData : array = []

setOverridePageIdList()

public setOverridePageIdList(int[]|array $overridePageIdList) : mixed

Parameters

$overridePageIdList : int[]|array

setOverrideUrlParameters()

Set URL parameters to override or add in the listUrl() method.

public setOverrideUrlParameters(string[] $urlParameters) : mixed

Parameters

$urlParameters : string[]

setRelatingTableAndField()

Set which pointing field (in the TCEForm) we are currently rendering the element browser for

public setRelatingTableAndField(string $tableName, string $fieldName) : mixed

Parameters

$tableName : string

Table name

$fieldName : string

Field name

setTableDisplayOrder()

Set table display order information

public setTableDisplayOrder(array $orderInformation) : mixed

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

Tags

throws
UnexpectedValueException

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) : mixed

Parameters

$showOnlyTranslatedRecords : bool

start()

Initializes the list generation

public start(int $id, string $table, int $pointer[, string $search = '' ][, int $levels = 0 ][, int $showLimit = 0 ]) : mixed

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 gorup, if not already present

protected addDividerToCellGroup(array &$cells) : void

Parameters

$cells : array

addElement()

Returns a table-row with the content from the fields in the input data array.

protected addElement(array $data[, string $rowParams = '' ][, string $colType = 'td' ]) : string

OBS: $this->fieldArray MUST be set! (represents the list of fields to display)

Parameters

$data : array

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 values

string —

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) : QueryBuilder

Parameters

$tableName : string
$queryBuilder : QueryBuilder
$searchLevels : int

Return values

QueryBuilder —

Modified QueryBuilder object

columnSelector()

Creates a button, which triggers a modal for the column selection

protected columnSelector(string $table) : string

Parameters

$table : string

Table name

Return values

string —

HTML content with the button

createDownloadButtonForTable()

protected createDownloadButtonForTable(string $table, int $totalItems) : string

Parameters

$table : string
$totalItems : int

Return values

string

createNewRecordButton()

If new records can be created on this page, create a button

protected createNewRecordButton(string $table) : string

Parameters

$table : string

Return values

string

createShowItemTagAttributes()

Creates data attributes to be handles in moddule `TYPO3/CMS/Backend/ActionDispatcher`

protected createShowItemTagAttributes(string $arguments) : string

Parameters

$arguments : string

Return values

string

generateReferenceToolTip()

Generates HTML code for a Reference tooltip out of sys_refindex records you hand over

protected generateReferenceToolTip(string $table, int $uid) : string

Parameters

$table : string
$uid : int

Return values

string

getBackendUserInformation()

Helper method around fetching a "cruser_id" information for a record, with a cache, so the same information does not have to be processed for the same user over and over again.

protected getBackendUserInformation(int $backendUserId) : string

Parameters

$backendUserId : int

Return values

string

getFluidTemplateObject()

Returns a new standalone view, shorthand function

protected getFluidTemplateObject(string $filename) : StandaloneView

Parameters

$filename : string

Which templateFile should be used.

Return values

StandaloneView

getNoViewWithDokTypes()

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

protected getNoViewWithDokTypes(array $tsConfig) : array

Parameters

$tsConfig : array

Return values

array

getPagePermissionsForRecord()

Helper method around fetching the permissions of a record, by incorporating the record information AND the current user information.

protected getPagePermissionsForRecord(string $table, array $row) : Permission

Parameters

$table : string
$row : array

Return values

Permission

getPossibleTranslations()

Fetches all possible translations for the given page

protected getPossibleTranslations(int $pageUid) : 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 values

int[]

getPreviewUriBuilder()

Get preview link for pages or tt_content records

protected getPreviewUriBuilder(string $table, array $row) : PreviewUriBuilder

Parameters

$table : string
$row : array

Return values

PreviewUriBuilder

getReferenceCount()

Gets the number of records referencing the record with the UID $uid in the table $tableName.

protected getReferenceCount(string $tableName, int $uid) : int

Parameters

$tableName : string
$uid : int

Return values

int —

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, string $perms_clause) : int[]

Parameters

$id : int

Page id

$depth : int

Depth to go down

$perms_clause : string

select clause

Return values

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

Return values

array —

a list of all TCA tables

isClipboardFunctionalityEnabled()

Check whether the clipboard functionality is generally enabled.

protected isClipboardFunctionalityEnabled(string $table[, array $row = [] ]) : bool

In case a row is given, this checks if the record is neither a "delete placeholder", nor a translation.

Parameters

$table : string
$row : array = []

Return values

bool

isLocalized()

Check if a given record is a localization

protected isLocalized(string $table, array $row) : bool

Parameters

$table : string
$row : array

Return values

bool

isRecordCurrentBackendUser()

Check if the record represents the current backend user

protected isRecordCurrentBackendUser(string $table, array $row) : bool

Parameters

$table : string
$row : array

Return values

bool

isRecordDeletePlaceholder()

Check if user is in workspace and given record is a delete placeholder

protected isRecordDeletePlaceholder(array $row) : bool

Parameters

$row : array

Return values

bool

isRowListingConditionFulfilled()

Check if all row listing conditions are fulfilled.

protected isRowListingConditionFulfilled(string $table, array $row) : bool

Parameters

$table : string

String Table name

$row : array

Array Record

Return values

bool —

True, if all conditions are fulfilled.

languageFlag()

Return the icon for the language

protected languageFlag(string $table, array $row) : string

Parameters

$table : string
$row : array

Return values

string —

Language icon

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[, array $row = [] ][, bool $editPermission = true ]) : bool

Parameters

$table : string
$row : array = []
$editPermission : bool = true

Return values

bool

renderCheckboxActions()

Render convenience actions, such as "check all"

protected renderCheckboxActions() : string

Return values

string —

HTML markup for the checkbox actions

renderListNavigation()

Creates a page browser for tables with many records

protected renderListNavigation(string $table, int $totalItems, int $itemsPerPage) : string

Parameters

$table : string
$totalItems : int
$itemsPerPage : int

Return values

string —

Navigation HTML

renderMultiRecordSelectionActions()

Render the multi record selection actions, which are shown as soon as one record is selected

protected renderMultiRecordSelectionActions(string $table, array $currentIdList) : string

Parameters

$table : string
$currentIdList : array

Return values

string
On this page