‪TYPO3CMS  10.4
TaskcenterExtractionUpdate.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 {
29  protected ‪$extension;
30 
34  protected ‪$confirmation;
35 
36  public function ‪__construct()
37  {
38  $this->extension = new ‪ExtensionModel(
39  'taskcenter',
40  'Deprecated taskcenter extension',
41  '10.0.0',
42  'friendsoftypo3/taskcenter',
43  'Contains a framework to show and execute registered tasks.'
44  );
45 
46  $this->confirmation = new ‪Confirmation(
47  'Are you sure?',
48  'This extension has not been used very often and is only useful together with other extensions like sys_action. ' . $this->extension->getDescription(),
49  false
50  );
51  }
52 
58  public function ‪getConfirmation(): ‪Confirmation
59  {
61  }
62 
69  public function ‪getIdentifier(): string
70  {
71  return 'taskcenterExtension';
72  }
73 
79  public function ‪getTitle(): string
80  {
81  return 'Install extension "taskcenter" from TER';
82  }
83 
89  public function ‪getDescription(): string
90  {
91  return 'The extension "taskcenter" adds a view for Backend users to run configured tasks.'
92  . ' It is only useful if properly configured.';
93  }
94 
101  public function ‪updateNecessary(): bool
102  {
103  return !‪ExtensionManagementUtility::isLoaded('taskcenter');
104  }
105 
113  public function ‪getPrerequisites(): array
114  {
115  return [
116  DatabaseUpdatedPrerequisite::class
117  ];
118  }
119 }
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate\$extension
‪TYPO3 CMS Install Updates ExtensionModel $extension
Definition: TaskcenterExtractionUpdate.php:28
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate\__construct
‪__construct()
Definition: TaskcenterExtractionUpdate.php:34
‪TYPO3\CMS\Install\Updates
Definition: AbstractDownloadExtensionUpdate.php:16
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate\getIdentifier
‪string getIdentifier()
Definition: TaskcenterExtractionUpdate.php:67
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility
Definition: ExtensionManagementUtility.php:43
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate\getDescription
‪string getDescription()
Definition: TaskcenterExtractionUpdate.php:87
‪TYPO3\CMS\Install\Updates\ExtensionModel
Definition: ExtensionModel.php:26
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate\$confirmation
‪TYPO3 CMS Install Updates Confirmation $confirmation
Definition: TaskcenterExtractionUpdate.php:32
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate\getConfirmation
‪TYPO3 CMS Install Updates Confirmation getConfirmation()
Definition: TaskcenterExtractionUpdate.php:56
‪TYPO3\CMS\Install\Updates\Confirmation
Definition: Confirmation.php:21
‪TYPO3\CMS\Install\Updates\AbstractDownloadExtensionUpdate
Definition: AbstractDownloadExtensionUpdate.php:31
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate
Definition: TaskcenterExtractionUpdate.php:25
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded
‪static bool isLoaded($key)
Definition: ExtensionManagementUtility.php:114
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate\getTitle
‪string getTitle()
Definition: TaskcenterExtractionUpdate.php:77
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate\updateNecessary
‪bool updateNecessary()
Definition: TaskcenterExtractionUpdate.php:99
‪TYPO3\CMS\Install\Updates\TaskcenterExtractionUpdate\getPrerequisites
‪string[] getPrerequisites()
Definition: TaskcenterExtractionUpdate.php:111