‪TYPO3CMS  9.5
Compatibility7ExtractionUpdate.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 
24 {
28  protected ‪$title = 'Install extension "compatibility7" from TER';
29 
33  protected ‪$extensionKey = 'compatibility7';
34 
38  protected ‪$extensionDetails = [
39  'compatibility7' => [
40  'title' => 'Compatibility Mode for TYPO3 v7',
41  'description' => 'Provides an additional backwards-compatibility layer with legacy functionality for sites that haven\'t fully migrated to TYPO3 v8 yet.',
42  'versionString' => '8.7.1',
43  'composerName' => 'friendsoftypo3/compatibility7',
44  ],
45  ];
46 
50  protected ‪$extension;
51 
55  protected ‪$confirmation;
56 
57  public function ‪__construct()
58  {
59  $this->extension = new ‪ExtensionModel(
60  'compatibility7',
61  'Compatibility Mode for TYPO3 v7',
62  '8.7.1',
63  'friendsoftypo3/compatibility7',
64  'Provides an additional backwards-compatibility layer with legacy functionality for sites that haven\'t fully migrated to TYPO3 v8 yet.'
65  );
66 
67  $this->confirmation = new ‪Confirmation(
68  'Are you sure?',
69  'The compatibility extensions come with a performance penalty, use only if needed. ' . $this->extension->getDescription(),
70  false
71  );
72  }
73 
79  public function ‪getConfirmation(): ‪Confirmation
80  {
82  }
83 
90  public function ‪getIdentifier(): string
91  {
92  return 'compatibility7Extension';
93  }
94 
100  public function ‪getTitle(): string
101  {
102  return 'Install compatibility extension for TYPO3 7 compatibility';
103  }
104 
110  public function ‪getDescription(): string
111  {
112  return 'The extension "compatibility7" (Compatibility Mode for TYPO3 v7) was extracted into '
113  . 'the TYPO3 Extension Repository. This update downloads the TYPO3 Extension from the TER.';
114  }
115 
122  public function ‪updateNecessary(): bool
123  {
124  return !‪ExtensionManagementUtility::isLoaded('compatibility7');
125  }
126 
134  public function ‪getPrerequisites(): array
135  {
136  return [];
137  }
138 }
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\__construct
‪__construct()
Definition: Compatibility7ExtractionUpdate.php:52
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\getDescription
‪string getDescription()
Definition: Compatibility7ExtractionUpdate.php:105
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\$title
‪string $title
Definition: Compatibility7ExtractionUpdate.php:27
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\updateNecessary
‪bool updateNecessary()
Definition: Compatibility7ExtractionUpdate.php:117
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\getPrerequisites
‪string[] getPrerequisites()
Definition: Compatibility7ExtractionUpdate.php:129
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate
Definition: Compatibility7ExtractionUpdate.php:24
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\getTitle
‪string getTitle()
Definition: Compatibility7ExtractionUpdate.php:95
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\getIdentifier
‪string getIdentifier()
Definition: Compatibility7ExtractionUpdate.php:85
‪TYPO3\CMS\Install\Updates
Definition: AbstractDownloadExtensionUpdate.php:3
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:36
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\$extension
‪TYPO3 CMS Install Updates ExtensionModel $extension
Definition: Compatibility7ExtractionUpdate.php:46
‪TYPO3\CMS\Install\Updates\ExtensionModel
Definition: ExtensionModel.php:25
‪TYPO3\CMS\Install\Updates\Confirmation
Definition: Confirmation.php:20
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\$confirmation
‪TYPO3 CMS Install Updates Confirmation $confirmation
Definition: Compatibility7ExtractionUpdate.php:50
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded
‪static bool isLoaded($key, $exitOnError=null)
Definition: ExtensionManagementUtility.php:115
‪TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate
Definition: AbstractDownloadExtensionUpdate.php:31
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\getConfirmation
‪TYPO3 CMS Install Updates Confirmation getConfirmation()
Definition: Compatibility7ExtractionUpdate.php:74
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\$extensionKey
‪string $extensionKey
Definition: Compatibility7ExtractionUpdate.php:31
‪TYPO3\CMS\Install\Updates\Compatibility7ExtractionUpdate\$extensionDetails
‪array $extensionDetails
Definition: Compatibility7ExtractionUpdate.php:35