‪TYPO3CMS  ‪main
GetVersionedDataEvent.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 
28 {
29  public function ‪__construct(
30  private readonly ‪GridDataService $gridService,
31  private array $data,
32  private readonly int $start,
33  private readonly int $limit,
34  private array $dataArrayPart
35  ) {}
36 
38  {
39  return $this->gridService;
40  }
41 
42  public function ‪getData(): array
43  {
44  return $this->data;
45  }
46 
47  public function ‪setData(array $data): void
48  {
49  $this->data = $data;
50  }
51 
52  public function ‪getDataArrayPart(): array
53  {
54  return $this->dataArrayPart;
55  }
56 
57  public function ‪setDataArrayPart(array $dataArrayPart): void
58  {
59  $this->dataArrayPart = $dataArrayPart;
60  }
61 
62  public function ‪getStart(): int
63  {
64  return $this->start;
65  }
66 
67  public function ‪getLimit(): int
68  {
69  return $this->limit;
70  }
71 }
‪TYPO3\CMS\Workspaces\Event\GetVersionedDataEvent\getGridService
‪getGridService()
Definition: GetVersionedDataEvent.php:37
‪TYPO3\CMS\Workspaces\Event\GetVersionedDataEvent\getData
‪getData()
Definition: GetVersionedDataEvent.php:42
‪TYPO3\CMS\Workspaces\Event\GetVersionedDataEvent\setData
‪setData(array $data)
Definition: GetVersionedDataEvent.php:47
‪TYPO3\CMS\Workspaces\Event\GetVersionedDataEvent\getDataArrayPart
‪getDataArrayPart()
Definition: GetVersionedDataEvent.php:52
‪TYPO3\CMS\Workspaces\Event\GetVersionedDataEvent\getStart
‪getStart()
Definition: GetVersionedDataEvent.php:62
‪TYPO3\CMS\Workspaces\Event\GetVersionedDataEvent\getLimit
‪getLimit()
Definition: GetVersionedDataEvent.php:67
‪TYPO3\CMS\Workspaces\Event
Definition: AfterCompiledCacheableDataForWorkspaceEvent.php:18
‪TYPO3\CMS\Workspaces\Event\GetVersionedDataEvent\__construct
‪__construct(private readonly GridDataService $gridService, private array $data, private readonly int $start, private readonly int $limit, private array $dataArrayPart)
Definition: GetVersionedDataEvent.php:29
‪TYPO3\CMS\Workspaces\Event\GetVersionedDataEvent
Definition: GetVersionedDataEvent.php:28
‪TYPO3\CMS\Workspaces\Event\GetVersionedDataEvent\setDataArrayPart
‪setDataArrayPart(array $dataArrayPart)
Definition: GetVersionedDataEvent.php:57
‪TYPO3\CMS\Workspaces\Service\GridDataService
Definition: GridDataService.php:48