Commit c242c51c authored by Thomas Löffler's avatar Thomas Löffler
Browse files

Merge branch 'feature/cleanup-more-api-code' into 'develop'

[TASK] Remove more unused functionality from EXT:ter

See merge request t3o/ter!495
parents e7c22bba 8d3a7d10
Pipeline #9068 passed with stages
in 13 minutes and 6 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