‪TYPO3CMS  ‪main
ModifyDatabaseQueryForContentEvent.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 
20 use TYPO3\CMS\Core\Database\Query\QueryBuilder;
21 
26 {
27  public function ‪__construct(
28  private QueryBuilder $queryBuilder,
29  private readonly string $table,
30  private readonly int $pageId,
31  ) {}
32 
33  public function ‪getQueryBuilder(): QueryBuilder
34  {
35  return $this->queryBuilder;
36  }
37 
38  public function ‪setQueryBuilder(QueryBuilder $queryBuilder): void
39  {
40  $this->queryBuilder = $queryBuilder;
41  }
42 
43  public function ‪getTable(): string
44  {
45  return $this->table;
46  }
47 
48  public function ‪getPageId(): int
49  {
50  return $this->pageId;
51  }
52 }
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForContentEvent
Definition: ModifyDatabaseQueryForContentEvent.php:26
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForContentEvent\setQueryBuilder
‪setQueryBuilder(QueryBuilder $queryBuilder)
Definition: ModifyDatabaseQueryForContentEvent.php:38
‪TYPO3\CMS\Backend\View\Event
Definition: AbstractSectionMarkupGeneratedEvent.php:18
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForContentEvent\__construct
‪__construct(private QueryBuilder $queryBuilder, private readonly string $table, private readonly int $pageId,)
Definition: ModifyDatabaseQueryForContentEvent.php:27
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForContentEvent\getQueryBuilder
‪getQueryBuilder()
Definition: ModifyDatabaseQueryForContentEvent.php:33
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForContentEvent\getPageId
‪getPageId()
Definition: ModifyDatabaseQueryForContentEvent.php:48
‪TYPO3\CMS\Backend\View\Event\ModifyDatabaseQueryForContentEvent\getTable
‪getTable()
Definition: ModifyDatabaseQueryForContentEvent.php:43