Commit 8d3a7d10 authored by Benni Mack's avatar Benni Mack
Browse files

[TASK] Remove more unused functionality from EXT:ter

* ext_autoload is not needed anymore, as it is loaded via composer.json
* tx_ter_helper->getLatestVersionNumberOfExtension is not in use anymore
* and the tx_ter_extensionmembers.gif icon was not removed in the previous commits
parent 180eac83
Pipeline #9059 passed with stages
in 6 minutes and 14 seconds
......@@ -296,34 +296,6 @@ class tx_ter_helper
return $row;
}
/**
* Searches the repository for the highest version number of an upload of the
* extension specified by $extensionKey. If no upload was found at all, FALSE
* will be returned. If at least one upload was found, the highest version number
* following the format major.minor.dev (eg. 4.2.1) will be returned.
*
* @param string $extKey : Extension key
* @return mixed The version number as a string or FALSE
* @access public
*/
public function getLatestVersionNumberOfExtension($extensionKey)
{
$res = $this->getDatabaseConnection()->exec_SELECTquery(
'version',
'tx_ter_extensions',
'extensionkey=' . $this->getDatabaseConnection()->fullQuoteStr($extensionKey, 'tx_ter_extensions') . '
AND pid=' . intval($this->pluginObj->extensionsPID)
);
$latestVersion = false;
while ($row = $this->getDatabaseConnection()->sql_fetch_assoc($res)) {
if (version_compare($row['version'], $latestVersion, '>')) {
$latestVersion = $row['version'];
}
}
return $latestVersion;
}
/***
* Load an instance of the BE_USER to use with TCEFORM
*
......
<?php
$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ter');
return [
'tx_ter_api' => $extensionPath . 'class.tx_ter_api.php',
'tx_ter_helper' => $extensionPath . 'class.tx_ter_helper.php',
'tx_ter_buildextensionindex' => $extensionPath . 'cli/build-extension-index.php',
'tx_ter_module1' => $extensionPath . 'mod1/index.php',
'tx_ter_pi1' => $extensionPath . 'pi1/class.tx_ter_pi1.php',
'tx_ter_updatecurrentversionlisttask' => $extensionPath . 'task/class.tx_ter_updateCurrentVersionListTask.php',
'tx_ter_updateextensionindextask' => $extensionPath . 'task/class.tx_ter_updateExtensionIndexTask.php',
'tx_ter_updateextensionindextask_additionalfieldprovider' => $extensionPath . 'task/class.tx_ter_updateExtensionIndexTask_additionalFieldProvider.php',
];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment