‪TYPO3CMS  9.5
FileReference.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
18 
25 {
32  protected ‪$uidLocal;
33 
37  protected ‪$configurationManager;
38 
43  {
44  $this->configurationManager = ‪$configurationManager;
45  }
46 
50  public function ‪setOriginalResource(\‪TYPO3\CMS\Core\Resource\ResourceInterface ‪$originalResource)
51  {
52  $this->originalResource = ‪$originalResource;
53  $this->uidLocal = (int)‪$originalResource->getOriginalFile()->getUid();
54  }
55 
59  public function ‪getOriginalResource()
60  {
61  if ($this->originalResource === null) {
62  ‪$uid = $this->‪getUid();
63  if ($this->configurationManager->isFeatureEnabled('consistentTranslationOverlayHandling')) {
65  }
67  }
68 
70  }
71 }
‪TYPO3\CMS\Extbase\Domain\Model\FileReference\getOriginalResource
‪TYPO3 CMS Core Resource FileReference getOriginalResource()
Definition: FileReference.php:57
‪TYPO3
‪TYPO3\CMS\Extbase\Domain\Model\FileReference\$configurationManager
‪TYPO3 CMS Extbase Configuration ConfigurationManagerInterface $configurationManager
Definition: FileReference.php:35
‪TYPO3\CMS\Extbase\Domain\Model\AbstractFileFolder\$originalResource
‪TYPO3 CMS Core Resource ResourceInterface $originalResource
Definition: AbstractFileFolder.php:26
‪TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface
Definition: ConfigurationManagerInterface.php:22
‪TYPO3\CMS\Core\Resource\ResourceFactory\getInstance
‪static ResourceFactory getInstance()
Definition: ResourceFactory.php:39
‪TYPO3\CMS\Extbase\Domain\Model\FileReference\injectConfigurationManager
‪injectConfigurationManager(ConfigurationManagerInterface $configurationManager)
Definition: FileReference.php:40
‪TYPO3\CMS\Extbase\Domain\Model\FileReference\$uidLocal
‪int $uidLocal
Definition: FileReference.php:31
‪TYPO3\CMS\Extbase\Domain\Model\AbstractFileFolder
Definition: AbstractFileFolder.php:23
‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject\getUid
‪int getUid()
Definition: AbstractDomainObject.php:62
‪TYPO3\CMS\Core\Resource\ResourceFactory\getFileReferenceObject
‪FileReference getFileReferenceObject($uid, array $fileReferenceData=[], $raw=false)
Definition: ResourceFactory.php:629
‪TYPO3\CMS\Extbase\Domain\Model\FileReference
Definition: FileReference.php:25
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileCollection.php:2
‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject\$uid
‪int $uid
Definition: AbstractDomainObject.php:29
‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject\$_localizedUid
‪int $_localizedUid
Definition: AbstractDomainObject.php:33
‪TYPO3\CMS\Extbase\Domain\Model\FileReference\setOriginalResource
‪setOriginalResource(\TYPO3\CMS\Core\Resource\ResourceInterface $originalResource)
Definition: FileReference.php:48