‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider:
TYPO3\CMS\Backend\Search\LiveSearch\SearchProviderInterface

Public Member Functions

 __construct (protected readonly EventDispatcherInterface $eventDispatcher, protected readonly IconFactory $iconFactory, protected readonly LanguageServiceFactory $languageServiceFactory, protected readonly UriBuilder $uriBuilder, protected readonly QueryParser $queryParser, protected readonly SiteFinder $siteFinder,)
 
 getFilterLabel ()
 
 count (SearchDemand $searchDemand)
 
ResultItem[] find (SearchDemand $searchDemand)
 

Protected Member Functions

 parseCommand (SearchDemand $searchDemand)
 
 getQueryBuilderForTable (SearchDemand $searchDemand)
 
ResultItem[] findByTable (SearchDemand $searchDemand, int $limit)
 
int[] getPageIdList ()
 
string[] extractSearchableFieldsFromTable ()
 
 buildConstraintsForTable (string $queryString, QueryBuilder $queryBuilder)
 
 fieldTypeIsSearchable (string $fieldType)
 
string getShowLink (array $row)
 
 getBackendUser ()
 

Protected Attributes

LanguageService $languageService
 
string $userPermissions
 
array $pageIdList = []
 

Private Attributes

const RECURSIVE_PAGE_LEVEL = 99
 

Detailed Description

Search provider to query pages from database

Definition at line 53 of file PageRecordProvider.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::__construct ( protected readonly EventDispatcherInterface  $eventDispatcher,
protected readonly IconFactory  $iconFactory,
protected readonly LanguageServiceFactory  $languageServiceFactory,
protected readonly UriBuilder  $uriBuilder,
protected readonly QueryParser  $queryParser,
protected readonly SiteFinder  $siteFinder 
)

Member Function Documentation

◆ buildConstraintsForTable()

◆ count()

◆ extractSearchableFieldsFromTable()

string [] TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::extractSearchableFieldsFromTable ( )
protected

◆ fieldTypeIsSearchable()

TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::fieldTypeIsSearchable ( string  $fieldType)
protected

◆ find()

◆ findByTable()

◆ getBackendUser()

◆ getFilterLabel()

TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::getFilterLabel ( )

◆ getPageIdList()

int [] TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::getPageIdList ( )
protected

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

Returns
‪int[]

Definition at line 249 of file PageRecordProvider.php.

References TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider\getBackendUser().

Referenced by TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider\find().

◆ getQueryBuilderForTable()

◆ getShowLink()

string TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::getShowLink ( array  $row)
protected

Build a link to the record list based on given record.

Parameters
array$row‪Current record row from database.
Returns
‪string Link to open an edit window for record.

Definition at line 393 of file PageRecordProvider.php.

References $GLOBALS, and TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider\getBackendUser().

Referenced by TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider\findByTable().

◆ parseCommand()

Member Data Documentation

◆ $languageService

LanguageService TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::$languageService
protected

Definition at line 57 of file PageRecordProvider.php.

◆ $pageIdList

array TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::$pageIdList = []
protected

Definition at line 59 of file PageRecordProvider.php.

◆ $userPermissions

string TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::$userPermissions
protected

Definition at line 58 of file PageRecordProvider.php.

◆ RECURSIVE_PAGE_LEVEL

const TYPO3\CMS\Backend\Search\LiveSearch\PageRecordProvider::RECURSIVE_PAGE_LEVEL = 99
private

Definition at line 55 of file PageRecordProvider.php.