‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent Class Reference

Public Member Functions

 __construct (private QueryBuilder $queryBuilder, private readonly string $table, private readonly int $pageId, private readonly array $fields, private readonly int $firstResult, private readonly int $maxResults, private readonly DatabaseRecordList $recordList)
 
 getQueryBuilder ()
 
 setQueryBuilder (QueryBuilder $queryBuilder)
 
 getTable ()
 
 getPageId ()
 
 getFields ()
 
 getFirstResult ()
 
 getMaxResults ()
 
 getDatabaseRecordList ()
 

Detailed Description

Use this Event to alter the database query when loading content for a page (usually in the list module) before it is executed.

Definition at line 27 of file ModifyDatabaseQueryForRecordListingEvent.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent::__construct ( private QueryBuilder  $queryBuilder,
private readonly string  $table,
private readonly int  $pageId,
private readonly array  $fields,
private readonly int  $firstResult,
private readonly int  $maxResults,
private readonly DatabaseRecordList  $recordList 
)

Definition at line 29 of file ModifyDatabaseQueryForRecordListingEvent.php.

Member Function Documentation

◆ getDatabaseRecordList()

TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent::getDatabaseRecordList ( )

Definition at line 74 of file ModifyDatabaseQueryForRecordListingEvent.php.

◆ getFields()

TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent::getFields ( )

Definition at line 59 of file ModifyDatabaseQueryForRecordListingEvent.php.

References $fields.

◆ getFirstResult()

TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent::getFirstResult ( )

Definition at line 64 of file ModifyDatabaseQueryForRecordListingEvent.php.

◆ getMaxResults()

TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent::getMaxResults ( )

Definition at line 69 of file ModifyDatabaseQueryForRecordListingEvent.php.

◆ getPageId()

TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent::getPageId ( )

Definition at line 54 of file ModifyDatabaseQueryForRecordListingEvent.php.

◆ getQueryBuilder()

TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent::getQueryBuilder ( )

Definition at line 39 of file ModifyDatabaseQueryForRecordListingEvent.php.

◆ getTable()

TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent::getTable ( )

Definition at line 49 of file ModifyDatabaseQueryForRecordListingEvent.php.

◆ setQueryBuilder()

TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent::setQueryBuilder ( QueryBuilder  $queryBuilder)

Definition at line 44 of file ModifyDatabaseQueryForRecordListingEvent.php.