[TASK] Rename ExtensionManager class
authorHelmut Hummel <helmut.hummel@typo3.org>
Sat, 3 Nov 2012 18:46:38 +0000 (19:46 +0100)
committerHelmut Hummel <helmut.hummel@typo3.org>
Sat, 3 Nov 2012 18:51:15 +0000 (19:51 +0100)
The class ExtensionManager is actually a utility
to manage extensions. Rename it to better reflect
it's purpose.

Resolves: #42661
Releases: 6.0

Change-Id: Icb34e5c4aa12531fd03217884f58629d6fa1e6ab
Reviewed-on: http://review.typo3.org/16173
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
14 files changed:
typo3/sysext/linkvalidator/Classes/Linktype/class.tx_linkvalidator_linktype_abstract.php
typo3/sysext/linkvalidator/Classes/Linktype/class.tx_linkvalidator_linktype_external.php
typo3/sysext/linkvalidator/Classes/Linktype/class.tx_linkvalidator_linktype_file.php
typo3/sysext/linkvalidator/Classes/Linktype/class.tx_linkvalidator_linktype_interface.php
typo3/sysext/linkvalidator/Classes/Linktype/class.tx_linkvalidator_linktype_internal.php
typo3/sysext/linkvalidator/Classes/Linktype/class.tx_linkvalidator_linktype_linkhandler.php
typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php
typo3/sysext/linkvalidator/Classes/class.tx_linkvalidator_processor.php
typo3/sysext/linkvalidator/Classes/tasks/class.tx_linkvalidator_tasks_validator.php
typo3/sysext/linkvalidator/Classes/tasks/class.tx_linkvalidator_tasks_validatoradditionalfieldprovider.php
typo3/sysext/linkvalidator/ext_autoload.php
typo3/sysext/linkvalidator/ext_localconf.php
typo3/sysext/linkvalidator/ext_tables.php
typo3/sysext/linkvalidator/modfuncreport/class.tx_linkvalidator_modfuncreport.php

index 46918fe..151fc71 100644 (file)
@@ -4,5 +4,5 @@
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/Linktype/AbstractLinktype.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Linktype/AbstractLinktype.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Linktype/AbstractLinktype.php';
 ?>
\ No newline at end of file
index 5b090f0..0788114 100644 (file)
@@ -4,5 +4,5 @@
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/Linktype/ExternalLinktype.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Linktype/ExternalLinktype.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Linktype/ExternalLinktype.php';
 ?>
\ No newline at end of file
index 57be46a..501ce29 100644 (file)
@@ -4,5 +4,5 @@
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/Linktype/FileLinktype.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Linktype/FileLinktype.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Linktype/FileLinktype.php';
 ?>
\ No newline at end of file
index 2dab0f0..f6d707a 100644 (file)
@@ -4,5 +4,5 @@
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/Linktype/LinktypeInterface.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Linktype/LinktypeInterface.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Linktype/LinktypeInterface.php';
 ?>
\ No newline at end of file
index 02d1de8..90af951 100644 (file)
@@ -4,5 +4,5 @@
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/Linktype/InternalLinktype.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Linktype/InternalLinktype.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Linktype/InternalLinktype.php';
 ?>
\ No newline at end of file
index 82f8f9f..811d181 100644 (file)
@@ -4,5 +4,5 @@
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/Linktype/LinkHandler.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Linktype/LinkHandler.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Linktype/LinkHandler.php';
 ?>
\ No newline at end of file
index 91c3c2b..7747991 100644 (file)
@@ -194,10 +194,10 @@ class LinkValidatorReport extends \TYPO3\CMS\Backend\Module\AbstractFunctionModu
                $GLOBALS['BE_USER']->pushModuleData('web_info', $this->pObj->MOD_SETTINGS);
                $this->initialize();
                // Setting up the context sensitive menu
-               $this->resPath = $this->doc->backPath . \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('linkvalidator') . 'res/';
+               $this->resPath = $this->doc->backPath . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('linkvalidator') . 'res/';
                $this->pageRenderer = $this->doc->getPageRenderer();
                // Localization
-               $this->pageRenderer->addInlineLanguageLabelFile(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator', 'modfuncreport/locallang.xml'));
+               $this->pageRenderer->addInlineLanguageLabelFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator', 'modfuncreport/locallang.xml'));
                $this->pageRenderer->addJsInlineCode('linkvalidator', 'function toggleActionButton(prefix) {
                        var buttonDisable = true;
                        Ext.select(\'.\' + prefix ,false).each(function(checkBox,i){
@@ -295,8 +295,8 @@ class LinkValidatorReport extends \TYPO3\CMS\Backend\Module\AbstractFunctionModu
                }
                $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
                $this->doc->backPath = $GLOBALS['BACK_PATH'];
-               $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'modfuncreport/mod_template.html');
-               $this->relativePath = \TYPO3\CMS\Core\Extension\ExtensionManager::extRelPath('linkvalidator');
+               $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'modfuncreport/mod_template.html');
+               $this->relativePath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('linkvalidator');
                $this->pageRecord = \TYPO3\CMS\Backend\Utility\BackendUtility::readPageAccess($this->pObj->id, $GLOBALS['BE_USER']->getPagePermsClause(1));
                $this->isAccessibleForCurrentUser = FALSE;
                if ($this->pObj->id && is_array($this->pageRecord) || !$this->pObj->id && $this->isCurrentUserAdmin()) {
index c31b103..e395528 100644 (file)
@@ -27,5 +27,5 @@ $GLOBALS['LANG']->includeLLFile('EXT:linkvalidator/modfuncreport/locallang.xml')
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/LinkAnalyzer.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/LinkAnalyzer.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/LinkAnalyzer.php';
 ?>
\ No newline at end of file
index e8d3c78..c4cb7b7 100644 (file)
@@ -4,5 +4,5 @@
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/Task/ValidatorTask.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Task/ValidatorTask.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Task/ValidatorTask.php';
 ?>
\ No newline at end of file
index f6cee1c..f76adaf 100644 (file)
@@ -4,5 +4,5 @@
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/Task/ValidatorTaskAdditionalFieldProvider.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Task/ValidatorTaskAdditionalFieldProvider.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Task/ValidatorTaskAdditionalFieldProvider.php';
 ?>
\ No newline at end of file
index 5c559d8..763b91e 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-$extensionPath = \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator');
+$extensionPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator');
 return array(
        'tx_linkvalidator_linktype_abstract' => $extensionPath . 'classes/linktype/class.tx_linkvalidator_linktype_abstract.php',
        'tx_linkvalidator_linktype_interface' => $extensionPath . 'classes/linktype/class.tx_linkvalidator_linktype_interface.php',
index f7db72c..eeb996f 100644 (file)
@@ -3,7 +3,7 @@ if (!defined('TYPO3_MODE')) {
        die('Access denied.');
 }
 
-\TYPO3\CMS\Core\Extension\ExtensionManager::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:linkvalidator/res/pagetsconfig.txt">');
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:linkvalidator/res/pagetsconfig.txt">');
 
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['TYPO3\\CMS\\Linkvalidator\\Task\\ValidatorTask'] = array(
        'extension' => $_EXTKEY,
index 5cc1a06..eaa9517 100644 (file)
@@ -4,8 +4,8 @@ if (!defined('TYPO3_MODE')) {
 }
 if (TYPO3_MODE == 'BE') {
        // Add module
-       \TYPO3\CMS\Core\Extension\ExtensionManager::insertModuleFunction('web_info', 'TYPO3\\CMS\\Linkvalidator\\Report\\LinkValidatorReport', \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Report/LinkValidatorReport.php', 'LLL:EXT:linkvalidator/locallang.xml:mod_linkvalidator');
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::insertModuleFunction('web_info', 'TYPO3\\CMS\\Linkvalidator\\Report\\LinkValidatorReport', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Report/LinkValidatorReport.php', 'LLL:EXT:linkvalidator/locallang.xml:mod_linkvalidator');
 }
 // Initialize Context Sensitive Help (CSH)
-\TYPO3\CMS\Core\Extension\ExtensionManager::addLLrefForTCAdescr('linkvalidator', 'EXT:linkvalidator/modfuncreport/locallang_csh.xml');
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('linkvalidator', 'EXT:linkvalidator/modfuncreport/locallang_csh.xml');
 ?>
\ No newline at end of file
index 08c78ac..e6e883c 100644 (file)
@@ -4,5 +4,5 @@
  * and will be removed by 7.0. The class was renamed and is now located at:
  * typo3/sysext/linkvalidator/Classes/Report/LinkValidatorReport.php
  */
-require_once \TYPO3\CMS\Core\Extension\ExtensionManager::extPath('linkvalidator') . 'Classes/Report/LinkValidatorReport.php';
+require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('linkvalidator') . 'Classes/Report/LinkValidatorReport.php';
 ?>
\ No newline at end of file