‪TYPO3CMS  ‪main
ModifyRedirectManagementControllerViewDataEvent.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 Psr\Http\Message\ServerRequestInterface;
23 
31 {
32  public function ‪__construct(
33  private ‪Demand $demand,
34  private array $redirects,
35  private array $hosts,
36  private array $statusCodes,
37  private array $creationTypes,
38  private bool $showHitCounter,
39  private ‪ViewInterface $view,
40  private readonly ServerRequestInterface $request,
41  private array $integrityStatusCodes,
42  ) {}
43 
47  public function ‪getDemand(): ‪Demand
48  {
49  return $this->demand;
50  }
51 
55  public function ‪setDemand(‪Demand $demand): void
56  {
57  $this->demand = $demand;
58  }
59 
63  public function ‪getRedirects(): array
64  {
65  return $this->redirects;
66  }
67 
71  public function ‪setRedirects(array $redirects): void
72  {
73  $this->redirects = $redirects;
74  }
75 
79  public function ‪getRequest(): ServerRequestInterface
80  {
81  return $this->request;
82  }
83 
87  public function ‪getHosts(): array
88  {
89  return $this->hosts;
90  }
91 
95  public function ‪setHosts(array $hosts): void
96  {
97  $this->hosts = $hosts;
98  }
99 
103  public function ‪getStatusCodes(): array
104  {
105  return $this->statusCodes;
106  }
107 
111  public function ‪setStatusCodes(array $statusCodes): void
112  {
113  $this->statusCodes = $statusCodes;
114  }
115 
119  public function ‪getCreationTypes(): array
120  {
121  return $this->creationTypes;
122  }
123 
127  public function ‪setCreationTypes(array $creationTypes): void
128  {
129  $this->creationTypes = $creationTypes;
130  }
131 
135  public function ‪getShowHitCounter(): bool
136  {
137  return $this->showHitCounter;
138  }
139 
143  public function ‪setShowHitCounter(bool $showHitCounter): void
144  {
145  $this->showHitCounter = $showHitCounter;
146  }
147 
151  public function ‪getView(): ‪ViewInterface
152  {
153  return $this->view;
154  }
155 
159  public function ‪setView(‪ViewInterface $view): void
160  {
161  $this->view = $view;
162  }
163 
167  public function ‪getIntegrityStatusCodes(): array
168  {
169  return $this->integrityStatusCodes;
170  }
171 
175  public function ‪setIntegrityStatusCodes(array $integrityStatusCodes): void
176  {
177  $this->integrityStatusCodes = $integrityStatusCodes;
178  }
179 }
‪TYPO3\CMS\Redirects\Repository\Demand
Definition: Demand.php:29
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\getHosts
‪getHosts()
Definition: ModifyRedirectManagementControllerViewDataEvent.php:87
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\setRedirects
‪setRedirects(array $redirects)
Definition: ModifyRedirectManagementControllerViewDataEvent.php:71
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\getCreationTypes
‪getCreationTypes()
Definition: ModifyRedirectManagementControllerViewDataEvent.php:119
‪TYPO3\CMS\Core\View\ViewInterface
Definition: ViewInterface.php:24
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\__construct
‪__construct(private Demand $demand, private array $redirects, private array $hosts, private array $statusCodes, private array $creationTypes, private bool $showHitCounter, private ViewInterface $view, private readonly ServerRequestInterface $request, private array $integrityStatusCodes,)
Definition: ModifyRedirectManagementControllerViewDataEvent.php:32
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\getRequest
‪getRequest()
Definition: ModifyRedirectManagementControllerViewDataEvent.php:79
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\setShowHitCounter
‪setShowHitCounter(bool $showHitCounter)
Definition: ModifyRedirectManagementControllerViewDataEvent.php:143
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\getView
‪getView()
Definition: ModifyRedirectManagementControllerViewDataEvent.php:151
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\getStatusCodes
‪getStatusCodes()
Definition: ModifyRedirectManagementControllerViewDataEvent.php:103
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\setStatusCodes
‪setStatusCodes(array $statusCodes)
Definition: ModifyRedirectManagementControllerViewDataEvent.php:111
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\getDemand
‪getDemand()
Definition: ModifyRedirectManagementControllerViewDataEvent.php:47
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\setHosts
‪setHosts(array $hosts)
Definition: ModifyRedirectManagementControllerViewDataEvent.php:95
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\getShowHitCounter
‪getShowHitCounter()
Definition: ModifyRedirectManagementControllerViewDataEvent.php:135
‪TYPO3\CMS\Redirects\Event
Definition: AfterAutoCreateRedirectHasBeenPersistedEvent.php:18
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\getRedirects
‪getRedirects()
Definition: ModifyRedirectManagementControllerViewDataEvent.php:63
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent
Definition: ModifyRedirectManagementControllerViewDataEvent.php:31
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\getIntegrityStatusCodes
‪getIntegrityStatusCodes()
Definition: ModifyRedirectManagementControllerViewDataEvent.php:167
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\setView
‪setView(ViewInterface $view)
Definition: ModifyRedirectManagementControllerViewDataEvent.php:159
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\setIntegrityStatusCodes
‪setIntegrityStatusCodes(array $integrityStatusCodes)
Definition: ModifyRedirectManagementControllerViewDataEvent.php:175
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\setDemand
‪setDemand(Demand $demand)
Definition: ModifyRedirectManagementControllerViewDataEvent.php:55
‪TYPO3\CMS\Redirects\Event\ModifyRedirectManagementControllerViewDataEvent\setCreationTypes
‪setCreationTypes(array $creationTypes)
Definition: ModifyRedirectManagementControllerViewDataEvent.php:127