[TASK] Remove XCLASS definitions in ext:workspace
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 21 Jun 2012 21:06:42 +0000 (23:06 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 21 Jun 2012 21:10:07 +0000 (23:10 +0200)
All XCLASS definitions can be removed in TYPO3 6.0

Change-Id: I2c168307f2d23dfad8151db7c68e9140993b691d
Resolves: #38271
Related: #31893
Releases: 6.0
Reviewed-on: http://review.typo3.org/12277
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
17 files changed:
typo3/sysext/workspaces/Classes/Controller/AbstractController.php
typo3/sysext/workspaces/Classes/Controller/PreviewController.php
typo3/sysext/workspaces/Classes/Controller/ReviewController.php
typo3/sysext/workspaces/Classes/ExtDirect/AbstractHandler.php
typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php
typo3/sysext/workspaces/Classes/ExtDirect/MassActionHandler.php
typo3/sysext/workspaces/Classes/ExtDirect/Server.php
typo3/sysext/workspaces/Classes/ExtDirect/ToolbarMenu.php
typo3/sysext/workspaces/Classes/ExtDirect/WorkspaceSelectorToolbarItem.php
typo3/sysext/workspaces/Classes/Service/AutoPublish.php
typo3/sysext/workspaces/Classes/Service/AutoPublishTask.php
typo3/sysext/workspaces/Classes/Service/Befunc.php
typo3/sysext/workspaces/Classes/Service/CleanupPreviewLinkTask.php
typo3/sysext/workspaces/Classes/Service/GridData.php
typo3/sysext/workspaces/Classes/Service/Stages.php
typo3/sysext/workspaces/Classes/Service/Tcemain.php
typo3/sysext/workspaces/Classes/Service/Workspaces.php

index 0bea351..7402489 100644 (file)
@@ -105,9 +105,4 @@ class Tx_Workspaces_Controller_AbstractController extends Tx_Extbase_MVC_Control
                $response->setContent($pageHeader . $response->getContent() . $pageEnd);
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Controller/AbstractController.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Controller/AbstractController.php']);
-}
 ?>
\ No newline at end of file
index 9e21451..2214d6f 100644 (file)
@@ -320,9 +320,4 @@ class Tx_Workspaces_Controller_PreviewController extends Tx_Workspaces_Controlle
                return $js;
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Controller/PreviewController.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Controller/PreviewController.php']);
-}
 ?>
\ No newline at end of file
index 7946a9e..4ce765a 100644 (file)
@@ -192,10 +192,4 @@ class Tx_Workspaces_Controller_ReviewController extends Tx_Workspaces_Controller
                }
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Controller/ReviewController.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Controller/ReviewController.php']);
-}
-
 ?>
\ No newline at end of file
index 77080eb..258d8ef 100644 (file)
@@ -71,9 +71,4 @@ abstract class Tx_Workspaces_ExtDirect_AbstractHandler {
                return t3lib_div::makeInstance('Tx_Workspaces_Service_Workspaces');
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/AbstractHandler.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/AbstractHandler.php']);
-}
 ?>
\ No newline at end of file
index 02d06a2..36cc613 100644 (file)
@@ -745,9 +745,4 @@ class Tx_Workspaces_ExtDirect_ActionHandler extends Tx_Workspaces_ExtDirect_Abst
                return $toolbarButtons;
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/ActionHandler.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/ActionHandler.php']);
-}
-?>
+?>
\ No newline at end of file
index 5940378..61bee36 100644 (file)
@@ -234,9 +234,4 @@ class Tx_Workspaces_ExtDirect_MassActionHandler extends Tx_Workspaces_ExtDirect_
                return $recordsProcessed;
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/MassActionHandler.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/MassActionHandler.php']);
-}
 ?>
\ No newline at end of file
index e965c16..2126d7b 100644 (file)
@@ -214,9 +214,4 @@ class Tx_Workspaces_ExtDirect_Server extends Tx_Workspaces_ExtDirect_AbstractHan
                return $sysLogReturnArray;
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/Server.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/Server.php']);
-}
-?>
+?>
\ No newline at end of file
index abc60a0..1c5d93c 100644 (file)
@@ -57,9 +57,4 @@ class Tx_Workspaces_ExtDirect_ToolbarMenu {
                );
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/ToolbarMenu.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/ToolbarMenu.php']);
-}
 ?>
\ No newline at end of file
index 3d66890..7acc7cb 100644 (file)
@@ -163,9 +163,4 @@ class Tx_Workspaces_ExtDirect_WorkspaceSelectorToolbarItem implements backend_to
 if (!(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_AJAX)) {
        $GLOBALS['TYPO3backend']->addToolbarItem('workSpaceSelector', 'Tx_Workspaces_ExtDirect_WorkspaceSelectorToolbarItem');
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/Tx_Workspaces_ExtDirect_WorkspaceSelectorToolbarItem.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/ExtDirect/Tx_Workspaces_ExtDirect_WorkspaceSelectorToolbarItem.php']);
-}
 ?>
\ No newline at end of file
index 9c5c91f..edd5119 100644 (file)
@@ -79,9 +79,4 @@ class Tx_Workspaces_Service_AutoPublish {
                $GLOBALS['BE_USER']->user['admin'] = $currentAdminStatus;
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/AutoPublish.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/AutoPublish.php']);
-}
 ?>
\ No newline at end of file
index f9cdf67..9175c17 100644 (file)
@@ -49,8 +49,4 @@ class Tx_Workspaces_Service_AutoPublishTask extends tx_scheduler_Task {
                return TRUE;
        }
 }
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/AutoPublishTask.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/AutoPublishTask.php']);
-}
 ?>
\ No newline at end of file
index b001234..650d29d 100644 (file)
@@ -103,8 +103,4 @@ class Tx_Workspaces_Service_Befunc {
                return $params['hasAccess'];
        }
 }
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Befunc.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Befunc.php']);
-}
 ?>
\ No newline at end of file
index 49f1eb8..b6f3053 100644 (file)
@@ -48,8 +48,4 @@ class Tx_Workspaces_Service_CleanupPreviewLinkTask extends tx_scheduler_Task {
                return TRUE;
        }
 }
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/CleanupPreviewLinkTask.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/CleanupPreviewLinkTask.php']);
-}
 ?>
\ No newline at end of file
index f30b1fa..0db5c87 100644 (file)
@@ -585,10 +585,4 @@ class Tx_Workspaces_Service_GridData {
                return t3lib_div::makeInstance('Tx_Extbase_Object_ObjectManager');
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/GridData.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/GridData.php']);
-}
-
-?>
+?>
\ No newline at end of file
index b473322..ea7f68a 100644 (file)
@@ -30,7 +30,6 @@
  * @package Workspaces
  * @subpackage Service
  */
-
 class Tx_Workspaces_Service_Stages {
        const TABLE_STAGE = 'sys_workspace_stage';
                // if a record is in the "ready to publish" stage STAGE_PUBLISH_ID the nextStage is STAGE_PUBLISH_EXECUTE_ID, this id wont be saved at any time in db
@@ -829,9 +828,4 @@ class Tx_Workspaces_Service_Stages {
                }
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Stages.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Stages.php']);
-}
-?>
+?>
\ No newline at end of file
index 8407951..1253070 100644 (file)
@@ -152,9 +152,4 @@ class Tx_Workspaces_Service_Tcemain {
                $workspacesCache->flushByTag(Tx_Workspaces_Service_Workspaces::SELECT_ALL_WORKSPACES);
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Tcemain.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Tcemain.php']);
-}
 ?>
\ No newline at end of file
index fd8d3a8..7343bf0 100644 (file)
@@ -671,9 +671,4 @@ class Tx_Workspaces_Service_Workspaces implements t3lib_Singleton {
                return $this->pageCache[$uid];
        }
 }
-
-
-if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Workspaces.php'])) {
-       include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Service/Workspaces.php']);
-}
 ?>
\ No newline at end of file