‪TYPO3CMS  10.4
GeneratePublicUrlForResourceEvent.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 
31 {
35  private ‪$resource;
36 
40  private ‪$storage;
41 
45  private ‪$driver;
46 
51 
55  private ‪$publicUrl;
56 
58  {
59  $this->resource = ‪$resource;
60  $this->storage = ‪$storage;
61  $this->driver = ‪$driver;
62  $this->relativeToCurrentScript = ‪$relativeToCurrentScript;
63  $this->publicUrl = null;
64  }
65 
67  {
68  return ‪$this->resource;
69  }
70 
71  public function ‪getStorage(): ‪ResourceStorage
72  {
73  return ‪$this->storage;
74  }
75 
76  public function ‪getDriver(): ‪DriverInterface
77  {
78  return ‪$this->driver;
79  }
80 
81  public function ‪isRelativeToCurrentScript(): bool
82  {
84  }
85 
86  public function ‪getPublicUrl(): ?string
87  {
88  return ‪$this->publicUrl;
89  }
90 
91  public function ‪setPublicUrl(?string ‪$publicUrl): void
92  {
93  $this->publicUrl = ‪$publicUrl;
94  }
95 }
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\getPublicUrl
‪getPublicUrl()
Definition: GeneratePublicUrlForResourceEvent.php:81
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\$storage
‪ResourceStorage $storage
Definition: GeneratePublicUrlForResourceEvent.php:38
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\setPublicUrl
‪setPublicUrl(?string $publicUrl)
Definition: GeneratePublicUrlForResourceEvent.php:86
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\__construct
‪__construct(ResourceInterface $resource, ResourceStorage $storage, DriverInterface $driver, bool $relativeToCurrentScript=false)
Definition: GeneratePublicUrlForResourceEvent.php:52
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\$relativeToCurrentScript
‪bool $relativeToCurrentScript
Definition: GeneratePublicUrlForResourceEvent.php:46
‪TYPO3\CMS\Core\Resource\Driver\DriverInterface
Definition: DriverInterface.php:23
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\$publicUrl
‪string null $publicUrl
Definition: GeneratePublicUrlForResourceEvent.php:50
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\isRelativeToCurrentScript
‪isRelativeToCurrentScript()
Definition: GeneratePublicUrlForResourceEvent.php:76
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent
Definition: GeneratePublicUrlForResourceEvent.php:31
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\getDriver
‪getDriver()
Definition: GeneratePublicUrlForResourceEvent.php:71
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\getStorage
‪getStorage()
Definition: GeneratePublicUrlForResourceEvent.php:66
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\$resource
‪ResourceInterface $resource
Definition: GeneratePublicUrlForResourceEvent.php:34
‪TYPO3\CMS\Core\Resource\Event
Definition: AfterFileAddedEvent.php:18
‪TYPO3\CMS\Core\Resource\ResourceStorage
Definition: ResourceStorage.php:122
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\getResource
‪getResource()
Definition: GeneratePublicUrlForResourceEvent.php:61
‪TYPO3\CMS\Core\Resource\ResourceInterface
Definition: ResourceInterface.php:22
‪TYPO3\CMS\Core\Resource\Event\GeneratePublicUrlForResourceEvent\$driver
‪DriverInterface $driver
Definition: GeneratePublicUrlForResourceEvent.php:42