PageRecordProvider implements SearchProviderInterface

FinalYes

Search provider to query pages from database

Internal

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<string|int, mixed>
$queryParser  : QueryParser
$siteFinder  : SiteFinder
$uriBuilder  : UriBuilder
$userPermissions  : string

Methods

__construct()  : mixed
count()  : int
find()  : array<string|int, ResultItem>
getFilterLabel()  : string
buildConstraintsForTable()  : array<string|int, mixed>
extractSearchableFieldsFromTable()  : array<string|int, string>
Get all fields from given table where we can search for.
fieldTypeIsSearchable()  : bool
findByTable()  : array<string|int, ResultItem>
getBackendUser()  : BackendUserAuthentication
getPageIdList()  : array<string|int, 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<string|int, mixed> $pageIdList = []

$userPermissions

protected string $userPermissions

Methods

getFilterLabel()

public getFilterLabel() : string
Return values
string

buildConstraintsForTable()

protected buildConstraintsForTable(string $queryString, QueryBuilder $queryBuilder) : array<string|int, mixed>
Parameters
$queryString : string
$queryBuilder : QueryBuilder
Return values
array<string|int, mixed>

extractSearchableFieldsFromTable()

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

protected extractSearchableFieldsFromTable() : array<string|int, string>
Return values
array<string|int, 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() : array<string|int, int>
Return values
array<string|int, int>

Build a backend edit link based on given record.

protected getShowLink(array<string|int, mixed> $row) : string
Parameters
$row : array<string|int, mixed>

Current record row from database.

Tags
see
BackendUtility::readPageAccess()
Return values
string

Link to open an edit window for record.

hasPermissionToView()

protected hasPermissionToView(array<string|int, mixed> $row) : bool
Parameters
$row : array<string|int, mixed>
Return values
bool

        
On this page

Search results