‪TYPO3CMS  10.4
BeforeFileAddedEvent.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 
23 
30 {
34  private ‪$fileName;
35 
39  private ‪$sourceFilePath;
40 
44  private ‪$targetFolder;
45 
49  private ‪$storage;
50 
54  private ‪$driver;
55 
57  {
58  $this->fileName = ‪$fileName;
59  $this->sourceFilePath = ‪$sourceFilePath;
60  $this->targetFolder = ‪$targetFolder;
61  $this->storage = ‪$storage;
62  $this->driver = ‪$driver;
63  }
64 
65  public function ‪getFileName(): string
66  {
67  return ‪$this->fileName;
68  }
69 
70  public function ‪setFileName(string ‪$fileName): void
71  {
72  $this->fileName = ‪$fileName;
73  }
74 
75  public function ‪getSourceFilePath(): string
76  {
78  }
79 
80  public function ‪getTargetFolder(): ‪Folder
81  {
83  }
84 
85  public function ‪getStorage(): ‪ResourceStorage
86  {
87  return ‪$this->storage;
88  }
89 
90  public function ‪getDriver(): ‪DriverInterface
91  {
92  return ‪$this->driver;
93  }
94 }
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\$storage
‪ResourceStorage $storage
Definition: BeforeFileAddedEvent.php:45
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface
Definition: DriverInterface.php:23
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\__construct
‪__construct(string $fileName, string $sourceFilePath, Folder $targetFolder, ResourceStorage $storage, DriverInterface $driver)
Definition: BeforeFileAddedEvent.php:51
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\getDriver
‪getDriver()
Definition: BeforeFileAddedEvent.php:85
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\getStorage
‪getStorage()
Definition: BeforeFileAddedEvent.php:80
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\$fileName
‪string $fileName
Definition: BeforeFileAddedEvent.php:33
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\$targetFolder
‪Folder $targetFolder
Definition: BeforeFileAddedEvent.php:41
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\getSourceFilePath
‪getSourceFilePath()
Definition: BeforeFileAddedEvent.php:70
‪TYPO3\CMS\Core\Resource\Folder
Definition: Folder.php:37
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\$driver
‪DriverInterface $driver
Definition: BeforeFileAddedEvent.php:49
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\getFileName
‪getFileName()
Definition: BeforeFileAddedEvent.php:60
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent
Definition: BeforeFileAddedEvent.php:30
‪TYPO3\CMS\Core\Resource\Event
Definition: AfterFileAddedEvent.php:18
‪TYPO3\CMS\Core\Resource\ResourceStorage
Definition: ResourceStorage.php:122
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\getTargetFolder
‪getTargetFolder()
Definition: BeforeFileAddedEvent.php:75
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\$sourceFilePath
‪string $sourceFilePath
Definition: BeforeFileAddedEvent.php:37
‪TYPO3\CMS\Core\Resource\Event\BeforeFileAddedEvent\setFileName
‪setFileName(string $fileName)
Definition: BeforeFileAddedEvent.php:65