PageRecordProvider

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

Implements
SearchProviderInterface

Search provider to query pages 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
$siteFinder  : SiteFinder
$uriBuilder  : UriBuilder
$userPermissions  : string

Methods

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

Properties

$eventDispatcher read-only

protected EventDispatcherInterface $eventDispatcher

$pageIdList

protected array $pageIdList = []

$userPermissions

protected string $userPermissions

Methods

getFilterLabel()

public getFilterLabel() : string

Return values

string

buildConstraintsForTable()

protected buildConstraintsForTable(string $queryString, QueryBuilder $queryBuilder) : array

Parameters

$queryString : string
$queryBuilder : QueryBuilder

Return values

array

extractSearchableFieldsFromTable()

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

protected extractSearchableFieldsFromTable() : string[]

Return values

string[]

fieldTypeIsSearchable()

protected fieldTypeIsSearchable(string $fieldType) : bool

Parameters

$fieldType : string

Return values

bool

getPageIdList()

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

protected getPageIdList() : int[]

Return values

int[]

Build a backend edit link based on given record.

protected getShowLink(array $row) : string

Parameters

$row : array

Current record row from database.

Tags

see
BackendUtility::readPageAccess()

Return values

string —

Link to open an edit window for record.

hasPermissionToView()

protected hasPermissionToView(array $row) : bool

Parameters

$row : array

Return values

bool
On this page