‪TYPO3CMS  ‪main
SortVersionedDataEvent.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 
26 {
27  public function ‪__construct(
28  private readonly ‪GridDataService $gridService,
29  private array $data,
30  private string $sortColumn,
31  private string $sortDirection
32  ) {}
33 
35  {
36  return $this->gridService;
37  }
38 
39  public function ‪getData(): array
40  {
41  return $this->data;
42  }
43 
44  public function ‪setData(array $data): void
45  {
46  $this->data = $data;
47  }
48 
49  public function ‪getSortColumn(): string
50  {
51  return $this->sortColumn;
52  }
53 
54  public function ‪setSortColumn(string $sortColumn): void
55  {
56  $this->sortColumn = $sortColumn;
57  }
58 
59  public function ‪getSortDirection(): string
60  {
61  return $this->sortDirection;
62  }
63 
64  public function ‪setSortDirection(string $sortDirection): void
65  {
66  $this->sortDirection = $sortDirection;
67  }
68 }
‪TYPO3\CMS\Workspaces\Event\SortVersionedDataEvent
Definition: SortVersionedDataEvent.php:26
‪TYPO3\CMS\Workspaces\Event\SortVersionedDataEvent\setData
‪setData(array $data)
Definition: SortVersionedDataEvent.php:44
‪TYPO3\CMS\Workspaces\Event\SortVersionedDataEvent\getGridService
‪getGridService()
Definition: SortVersionedDataEvent.php:34
‪TYPO3\CMS\Workspaces\Event\SortVersionedDataEvent\getSortColumn
‪getSortColumn()
Definition: SortVersionedDataEvent.php:49
‪TYPO3\CMS\Workspaces\Event\SortVersionedDataEvent\getData
‪getData()
Definition: SortVersionedDataEvent.php:39
‪TYPO3\CMS\Workspaces\Event\SortVersionedDataEvent\setSortDirection
‪setSortDirection(string $sortDirection)
Definition: SortVersionedDataEvent.php:64
‪TYPO3\CMS\Workspaces\Event
Definition: AfterCompiledCacheableDataForWorkspaceEvent.php:18
‪TYPO3\CMS\Workspaces\Event\SortVersionedDataEvent\getSortDirection
‪getSortDirection()
Definition: SortVersionedDataEvent.php:59
‪TYPO3\CMS\Workspaces\Event\SortVersionedDataEvent\__construct
‪__construct(private readonly GridDataService $gridService, private array $data, private string $sortColumn, private string $sortDirection)
Definition: SortVersionedDataEvent.php:27
‪TYPO3\CMS\Workspaces\Service\GridDataService
Definition: GridDataService.php:48
‪TYPO3\CMS\Workspaces\Event\SortVersionedDataEvent\setSortColumn
‪setSortColumn(string $sortColumn)
Definition: SortVersionedDataEvent.php:54