‪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 
28 {
29  public function ‪__construct(
30  private QueryBuilder $queryBuilder,
31  private readonly string $table,
32  private readonly int $pageId,
33  private readonly array ‪$fields,
34  private readonly int $firstResult,
35  private readonly int $maxResults,
36  private readonly ‪DatabaseRecordList $recordList
37  ) {}
38 
39  public function ‪getQueryBuilder(): QueryBuilder
40  {
41  return $this->queryBuilder;
42  }
43 
44  public function ‪setQueryBuilder(QueryBuilder $queryBuilder): void
45  {
46  $this->queryBuilder = $queryBuilder;
47  }
48 
49  public function ‪getTable(): string
50  {
51  return $this->table;
52  }
53 
54  public function ‪getPageId(): int
55  {
56  return $this->pageId;
57  }
58 
59  public function ‪getFields(): array
60  {
61  return ‪$this->fields;
62  }
63 
64  public function ‪getFirstResult(): int
65  {
66  return $this->firstResult;
67  }
68 
69  public function ‪getMaxResults(): int
70  {
71  return $this->maxResults;
72  }
73 
75  {
76  return $this->recordList;
77  }
78 }
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getFields
‪getFields()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:59
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getTable
‪getTable()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:49
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getMaxResults
‪getMaxResults()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:69
‪TYPO3\CMS\Backend\View\Event
Definition: AbstractSectionMarkupGeneratedEvent.php:18
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getDatabaseRecordList
‪getDatabaseRecordList()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:74
‪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:44
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getQueryBuilder
‪getQueryBuilder()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:39
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getFirstResult
‪getFirstResult()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:64
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent\getPageId
‪getPageId()
Definition: ModifyDatabaseQueryForRecordListingEvent.php:54
‪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:29
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForRecordListingEvent
Definition: ModifyDatabaseQueryForRecordListingEvent.php:28