‪TYPO3CMS  10.4
FuncExtractionUpdate.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
19 
25 {
26 
30  protected ‪$confirmation;
31 
32  public function ‪__construct()
33  {
34  $this->extension = new ‪ExtensionModel(
35  'func',
36  'Web->Functions module',
37  '9.0.1',
38  'friendsoftypo3/cms-func',
39  'Provides Web->Functions BE module used in previous TYPO3 versions for extensions that still rely on it.'
40  );
41 
42  $this->confirmation = new ‪Confirmation(
43  'Are you sure?',
44  'You should install EXT:func only if you really need it. ' . $this->extension->getDescription(),
45  false
46  );
47  }
48 
54  public function ‪getConfirmation(): ‪Confirmation
55  {
57  }
58 
65  public function ‪getIdentifier(): string
66  {
67  return 'funcExtension';
68  }
69 
75  public function ‪getTitle(): string
76  {
77  return 'Install extension "func" from TER';
78  }
79 
85  public function ‪getDescription(): string
86  {
87  return 'The extension "func" that brings the "Web->Functions" backend module has been extracted to'
88  . ' the TYPO3 Extension Repository. This update downloads the TYPO3 extension func from the TER.'
89  . ' Use this if you\'re dealing with extensions in the instance that rely on "Web->Functions" and bring own'
90  . ' modules.';
91  }
92 
99  public function ‪updateNecessary(): bool
100  {
101  return !‪ExtensionManagementUtility::isLoaded($this->extension->getKey());
102  }
103 
111  public function ‪getPrerequisites(): array
112  {
113  return [];
114  }
115 }
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\__construct
‪__construct()
Definition: FuncExtractionUpdate.php:31
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate
Definition: FuncExtractionUpdate.php:25
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getIdentifier
‪string getIdentifier()
Definition: FuncExtractionUpdate.php:64
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getConfirmation
‪TYPO3 CMS Install Updates Confirmation getConfirmation()
Definition: FuncExtractionUpdate.php:53
‪TYPO3\CMS\Install\Updates
Definition: AbstractDownloadExtensionUpdate.php:16
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:43
‪TYPO3\CMS\Install\Updates\ExtensionModel
Definition: ExtensionModel.php:26
‪TYPO3\CMS\Install\Updates\Confirmation
Definition: Confirmation.php:21
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getTitle
‪string getTitle()
Definition: FuncExtractionUpdate.php:74
‪TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate
Definition: AbstractDownloadExtensionUpdate.php:31
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\$confirmation
‪TYPO3 CMS Install Updates Confirmation $confirmation
Definition: FuncExtractionUpdate.php:29
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getDescription
‪string getDescription()
Definition: FuncExtractionUpdate.php:84
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getPrerequisites
‪string[] getPrerequisites()
Definition: FuncExtractionUpdate.php:110
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\updateNecessary
‪bool updateNecessary()
Definition: FuncExtractionUpdate.php:98
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded
‪static bool isLoaded($key)
Definition: ExtensionManagementUtility.php:114