‪TYPO3CMS  10.4
AdminPanelInstall.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 
21 
27 {
28 
32  protected ‪$confirmation;
33 
34  public function ‪__construct()
35  {
36  $this->extension = new ‪ExtensionModel(
37  'adminpanel',
38  'TYPO3 Admin Panel',
39  '9.2',
40  'typo3/cms-adminpanel',
41  'The TYPO3 admin panel provides a panel with additional functionality in the frontend (Debugging, Caching, Preview...)'
42  );
43 
44  $this->confirmation = new ‪Confirmation(
45  'Are you sure?',
46  'You should install the "adminpanel" only if needed. ' . $this->extension->getDescription(),
47  true
48  );
49  }
50 
56  public function ‪getConfirmation(): ‪Confirmation
57  {
59  }
60 
67  public function ‪getIdentifier(): string
68  {
69  return 'adminpanelExtension';
70  }
71 
77  public function ‪getTitle(): string
78  {
79  return 'Install extension "adminpanel"';
80  }
81 
87  public function ‪getDescription(): string
88  {
89  return 'The TYPO3 admin panel was extracted to an own extension. This update installs the extension.';
90  }
91 
98  public function ‪updateNecessary(): bool
99  {
100  return !‪ExtensionManagementUtility::isLoaded('adminpanel');
101  }
102 
110  public function ‪getPrerequisites(): array
111  {
112  return [];
113  }
114 }
‪TYPO3\CMS\Install\Updates\AdminPanelInstall\getIdentifier
‪string getIdentifier()
Definition: AdminPanelInstall.php:66
‪TYPO3\CMS\Install\Updates\AdminPanelInstall\getConfirmation
‪TYPO3 CMS Install Updates Confirmation getConfirmation()
Definition: AdminPanelInstall.php:55
‪TYPO3\CMS\Install\Updates\AdminPanelInstall\getTitle
‪string getTitle()
Definition: AdminPanelInstall.php:76
‪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\AdminPanelInstall\getDescription
‪string getDescription()
Definition: AdminPanelInstall.php:86
‪TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate
Definition: AbstractDownloadExtensionUpdate.php:31
‪TYPO3\CMS\Install\Updates\AdminPanelInstall
Definition: AdminPanelInstall.php:27
‪TYPO3\CMS\Install\Updates\AdminPanelInstall\__construct
‪__construct()
Definition: AdminPanelInstall.php:33
‪TYPO3\CMS\Install\Updates\AdminPanelInstall\updateNecessary
‪bool updateNecessary()
Definition: AdminPanelInstall.php:97
‪TYPO3\CMS\Install\Updates\AdminPanelInstall\getPrerequisites
‪string[] getPrerequisites()
Definition: AdminPanelInstall.php:109
‪TYPO3\CMS\Install\Updates\AdminPanelInstall\$confirmation
‪TYPO3 CMS Install Updates Confirmation $confirmation
Definition: AdminPanelInstall.php:31
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded
‪static bool isLoaded($key)
Definition: ExtensionManagementUtility.php:114