‪TYPO3CMS  11.5
ProcessFileListActionsEvent.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 
22 
27 {
29  private array ‪$actionItems;
30 
32  {
33  $this->fileOrFolder = ‪$fileOrFolder;
34  $this->actionItems = ‪$actionItems;
35  }
36 
38  {
40  }
41 
42  public function ‪isFile(): bool
43  {
44  return $this->fileOrFolder instanceof ‪FileInterface;
45  }
46 
47  public function ‪getActionItems(): array
48  {
49  return ‪$this->actionItems;
50  }
51 
52  public function ‪setActionItems(array ‪$actionItems): void
53  {
54  $this->actionItems = ‪$actionItems;
55  }
56 }
‪TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent\$fileOrFolder
‪ResourceInterface $fileOrFolder
Definition: ProcessFileListActionsEvent.php:28
‪TYPO3\CMS\Core\Resource\FileInterface
Definition: FileInterface.php:22
‪TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent\$actionItems
‪array $actionItems
Definition: ProcessFileListActionsEvent.php:29
‪TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent
Definition: ProcessFileListActionsEvent.php:27
‪TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent\isFile
‪isFile()
Definition: ProcessFileListActionsEvent.php:42
‪TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent\getActionItems
‪getActionItems()
Definition: ProcessFileListActionsEvent.php:47
‪TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent\getResource
‪getResource()
Definition: ProcessFileListActionsEvent.php:37
‪TYPO3\CMS\Filelist\Event
Definition: ProcessFileListActionsEvent.php:18
‪TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent\setActionItems
‪setActionItems(array $actionItems)
Definition: ProcessFileListActionsEvent.php:52
‪TYPO3\CMS\Core\Resource\ResourceInterface
Definition: ResourceInterface.php:22
‪TYPO3\CMS\Filelist\Event\ProcessFileListActionsEvent\__construct
‪__construct(ResourceInterface $fileOrFolder, array $actionItems)
Definition: ProcessFileListActionsEvent.php:31