‪TYPO3CMS  9.5
FuncExtractionUpdate.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 {
25 
29  protected ‪$confirmation;
30 
31  public function ‪__construct()
32  {
33  $this->extension = new ‪ExtensionModel(
34  'func',
35  'Web->Functions module',
36  '9.0.1',
37  'friendsoftypo3/cms-func',
38  'Provides Web->Functions BE module used in previous TYPO3 versions for extensions that still rely on it.'
39  );
40 
41  $this->confirmation = new ‪Confirmation(
42  'Are you sure?',
43  'You should install EXT:func only if you really need it. ' . $this->extension->getDescription(),
44  false
45  );
46  }
47 
53  public function ‪getConfirmation(): ‪Confirmation
54  {
56  }
57 
64  public function ‪getIdentifier(): string
65  {
66  return 'funcExtension';
67  }
68 
74  public function ‪getTitle(): string
75  {
76  return 'Install extension "func" from TER';
77  }
78 
84  public function ‪getDescription(): string
85  {
86  return 'The extension "func" that brings the "Web->Functions" backend module has been extracted to'
87  . ' the TYPO3 Extension Repository. This update downloads the TYPO3 extension func from the TER.'
88  . ' Use this if you\'re dealing with extensions in the instance that rely on "Web->Functions" and bring own'
89  . ' modules.';
90  }
91 
98  public function ‪updateNecessary(): bool
99  {
100  return !‪ExtensionManagementUtility::isLoaded($this->extension->getKey());
101  }
102 
110  public function ‪getPrerequisites(): array
111  {
112  return [];
113  }
114 }
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\__construct
‪__construct()
Definition: FuncExtractionUpdate.php:30
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate
Definition: FuncExtractionUpdate.php:24
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getIdentifier
‪string getIdentifier()
Definition: FuncExtractionUpdate.php:63
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getConfirmation
‪TYPO3 CMS Install Updates Confirmation getConfirmation()
Definition: FuncExtractionUpdate.php:52
‪TYPO3\CMS\Install\Updates
Definition: AbstractDownloadExtensionUpdate.php:3
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:36
‪TYPO3\CMS\Install\Updates\ExtensionModel
Definition: ExtensionModel.php:25
‪TYPO3\CMS\Install\Updates\Confirmation
Definition: Confirmation.php:20
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded
‪static bool isLoaded($key, $exitOnError=null)
Definition: ExtensionManagementUtility.php:115
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getTitle
‪string getTitle()
Definition: FuncExtractionUpdate.php:73
‪TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate
Definition: AbstractDownloadExtensionUpdate.php:31
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\$confirmation
‪TYPO3 CMS Install Updates Confirmation $confirmation
Definition: FuncExtractionUpdate.php:28
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getDescription
‪string getDescription()
Definition: FuncExtractionUpdate.php:83
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\getPrerequisites
‪string[] getPrerequisites()
Definition: FuncExtractionUpdate.php:109
‪TYPO3\CMS\Install\Updates\FuncExtractionUpdate\updateNecessary
‪bool updateNecessary()
Definition: FuncExtractionUpdate.php:97