‪TYPO3CMS  ‪main
ModifyDatabaseQueryForRecordListingEvent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 use TYPO3\CMS\Core\Database\Query\QueryBuilder;
22 
29 {
30  public function ‪__construct(
31  private QueryBuilder $queryBuilder,
32  private readonly string $table,
33  private readonly int $pageId,
34  private readonly array ‪$fields,
35  private readonly int $firstResult,
36  private readonly int $maxResults,
37  private readonly ‪DatabaseRecordList $recordList
38  ) {}
39 
40  public function ‪getQueryBuilder(): QueryBuilder
41  {
42  return $this->queryBuilder;
43  }
44 
45  public function ‪setQueryBuilder(QueryBuilder $queryBuilder): void
46  {
47  $this->queryBuilder = $queryBuilder;
48  }
49 
50  public function ‪getTable(): string
51  {
52  return $this->table;
53  }
54 
55  public function ‪getPageId(): int
56  {
57  return $this->pageId;
58  }
59 
60  public function ‪getFields(): array
61  {
62  return ‪$this->fields;
63  }
64 
65  public function ‪getFirstResult(): int
66  {
67  return $this->firstResult;
68  }
69 
70  public function ‪getMaxResults(): int
71  {
72  return $this->maxResults;
73  }
74 
76  {
77  return $this->recordList;
78  }
79 }
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getFields
‪getFields()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:60
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getTable
‪getTable()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:50
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getMaxResults
‪getMaxResults()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:70
‪TYPO3\CMS\Backend\View\Event
Definition: AbstractSectionMarkupGeneratedEvent.php:18
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getDatabaseRecordList
‪getDatabaseRecordList()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:75
‪TYPO3\CMS\Backend\RecordList\DatabaseRecordList
Definition: DatabaseRecordList.php:68
‪$fields
‪$fields
Definition: pages.php:5
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\setQueryBuilder
‪setQueryBuilder(QueryBuilder $queryBuilder)
Definition: ModifyDatabaseQueryForRecordListingEvent.php:45
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getQueryBuilder
‪getQueryBuilder()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:40
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getFirstResult
‪getFirstResult()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:65
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getPageId
‪getPageId()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:55
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\__construct
‪__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: ModifyDatabaseQueryForRecordListingEvent.php:30
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent
Definition: ModifyDatabaseQueryForRecordListingEvent.php:29