‪TYPO3CMS  10.4
SanitizeFileNameEvent.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 
29 {
33  private ‪$fileName;
34 
38  private ‪$targetFolder;
39 
43  private ‪$storage;
44 
48  private ‪$driver;
49 
51  {
52  $this->fileName = ‪$fileName;
53  $this->targetFolder = ‪$targetFolder;
54  $this->storage = ‪$storage;
55  $this->driver = ‪$driver;
56  }
57 
58  public function ‪getFileName(): string
59  {
60  return ‪$this->fileName;
61  }
62 
63  public function ‪setFileName(string ‪$fileName): void
64  {
65  $this->fileName = ‪$fileName;
66  }
67 
68  public function ‪getTargetFolder(): ‪Folder
69  {
71  }
72 
73  public function ‪getStorage(): ‪ResourceStorage
74  {
75  return ‪$this->storage;
76  }
77 
78  public function ‪getDriver(): ‪DriverInterface
79  {
80  return ‪$this->driver;
81  }
82 }
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\$storage
‪ResourceStorage $storage
Definition: SanitizeFileNameEvent.php:40
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\$targetFolder
‪Folder $targetFolder
Definition: SanitizeFileNameEvent.php:36
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\getDriver
‪getDriver()
Definition: SanitizeFileNameEvent.php:74
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface
Definition: DriverInterface.php:23
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\getStorage
‪getStorage()
Definition: SanitizeFileNameEvent.php:69
‪TYPO3\CMS\Core\Resource\Folder
Definition: Folder.php:37
‪TYPO3\CMS\Core\Resource\Event
Definition: AfterFileAddedEvent.php:18
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\$driver
‪DriverInterface $driver
Definition: SanitizeFileNameEvent.php:44
‪TYPO3\CMS\Core\Resource\ResourceStorage
Definition: ResourceStorage.php:122
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\$fileName
‪string $fileName
Definition: SanitizeFileNameEvent.php:32
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\setFileName
‪setFileName(string $fileName)
Definition: SanitizeFileNameEvent.php:59
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\__construct
‪__construct(string $fileName, Folder $targetFolder, ResourceStorage $storage, DriverInterface $driver)
Definition: SanitizeFileNameEvent.php:46
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent
Definition: SanitizeFileNameEvent.php:29
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\getFileName
‪getFileName()
Definition: SanitizeFileNameEvent.php:54
‪TYPO3\CMS\Core\Resource\Event\SanitizeFileNameEvent\getTargetFolder
‪getTargetFolder()
Definition: SanitizeFileNameEvent.php:64