DatabaseRecordProvider

final class \TYPO3\CMS\Backend\Search\LiveSearch\DatabaseRecordProvider

Implements
SearchProviderInterface

Search provider to query records from database

Table of Contents

Interfaces

SearchProviderInterface
Interface to declare a search provider used for the backend search

Properties

$eventDispatcher  : EventDispatcherInterface
$iconFactory  : IconFactory
$languageService  : LanguageService
$languageServiceFactory  : LanguageServiceFactory
$pageIdList  : array
$queryParser  : QueryParser
$uriBuilder  : UriBuilder
$userPermissions  : string

Methods

__construct()  : mixed
count()  : int
find()  : ResultItem[]
getFilterLabel()  : string
buildConstraintsForTable()  : CompositeExpression[]
canAccessTable()  : bool
countByTable()  : int
extractSearchableFieldsFromTable()  : string[]
Get all fields from given table where we can search for.
fieldTypeIsSearchable()  : bool
findByTable()  : ResultItem[]
getAccessibleTables()  : array
getBackendUser()  : BackendUserAuthentication
getEditLink()  : string
Build a backend edit link based on given record.
getPageIdList()  : int[]
List of available page uids for user, empty array for admin users.
getQueryBuilderForTable()  : QueryBuilder|null
parseCommand()  : array

Properties

$eventDispatcher read-only

protected EventDispatcherInterface $eventDispatcher

$pageIdList

protected array $pageIdList = []

$userPermissions

protected string $userPermissions

Methods

getFilterLabel()

public getFilterLabel() : string

Return values

string

canAccessTable()

protected canAccessTable(string $tableName) : bool

Parameters

$tableName : string

Return values

bool

countByTable()

protected countByTable(SearchDemand $searchDemand, string $tableName) : int

Parameters

$searchDemand : SearchDemand
$tableName : string

Return values

int

extractSearchableFieldsFromTable()

Get all fields from given table where we can search for.

protected extractSearchableFieldsFromTable(string $tableName) : string[]

Parameters

$tableName : string

Return values

string[]

fieldTypeIsSearchable()

protected fieldTypeIsSearchable(string $fieldType) : bool

Parameters

$fieldType : string

Return values

bool

Build a backend edit link based on given record.

protected getEditLink(string $tableName, array $row) : string

Parameters

$tableName : string

Record table name

$row : array

Current record row from database.

Tags

see
BackendUtility::readPageAccess()

Return values

string —

Link to open an edit window for record.

getPageIdList()

List of available page uids for user, empty array for admin users.

protected getPageIdList() : int[]

Return values

int[]
On this page