Index: ext_tables.php =================================================================== --- ext_tables.php (Revision 3569) +++ ext_tables.php (Arbeitskopie) @@ -30,6 +30,11 @@ $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ActionHandler.php:tx_Workspaces_ExtDirect_ActionHandler'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Workspaces.ExtDirectMassActions'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/MassActionHandler.php:tx_Workspaces_ExtDirect_MassActionHandler'; $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ExtDirect']['TYPO3.Ajax.ExtDirect.ToolbarMenu'] = t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ToolbarMenu.php:tx_Workspaces_ExtDirect_ToolbarMenu'; + + // register the reports statusprovider + $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['Configuration'][] = 'Tx_Workspaces_Reports_StatusProvider'; + + } /** Index: Classes/Reports/StatusProvider.php =================================================================== --- Classes/Reports/StatusProvider.php (Revision 0) +++ Classes/Reports/StatusProvider.php (Revision 0) @@ -0,0 +1,88 @@ +reportList); + + foreach ($reportMethods as $reportMethod) { + $reports[$reportMethod] = $this->{'get' . $reportMethod . 'Status'}(); + } + + return $reports; + } + + + /** + * Checks if there are still updates to perform + * + * @return tx_reports_reports_status_Status An tx_reports_reports_status_Status object representing whether the element versioning is in use or not + */ + protected function getElementVersioningOnlyStatus() { + $severity = tx_reports_reports_status_Status::OK; + $value = 'Element Versioning is in use.'; + $message = 'All Configuration options have been set correctly'; + + if ($GLOBALS['TYPO3_CONF_VARS']['BE']['elementVersioningOnly'] || $GLOBALS['TYPO3_CONF_VARS']['BE']['newPagesVersioningType'] != -1) { + $severity = tx_reports_reports_status_Status::WARNING; + $value = 'System not configured correctly.'; + $message = 'This TYPO3 installation is configured to use Element versioning. Page and Branch versioning are deprecated since TYPO3 4.4.
If you are sure that you don\'t use the Workspaces functionality right now (or if you don\'t have any versionized records right now), you can safely change these options in the Install Tool by setting ["BE"]["newPagesVersioningType"] = -1 and ["BE"]["elementVersioningOnly"] = 1 under "All Configuration".'; + } + + return t3lib_div::makeInstance('tx_reports_reports_status_Status', + 'Workspaces: Ensure that Element Versioning is used.', + $value, + $message, + $severity + ); + } + +} + +if (defined('TYPO3_MODE') && isset($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Reports/StatusProvider.php'])) { + include_once($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['XCLASS']['ext/workspaces/Classes/Reports/StatusProvider.php']); +} + +?> \ No newline at end of file Index: ext_autoload.php =================================================================== --- ext_autoload.php (Revision 3569) +++ ext_autoload.php (Arbeitskopie) @@ -12,6 +12,7 @@ 'tx_workspaces_extdirect_massactionhandler' => $extensionPath . 'Classes/ExtDirect/MassActionHandler.php', 'tx_workspaces_extdirect_server' => $extensionPath . 'Classes/ExtDirect/Server.php', 'tx_workspaces_extdirect_toolbarmenu' => $extensionPath . 'Classes/ExtDirect/ToolbarMenu.php', + 'tx_workspaces_reports_statusprovider' => $extensionPath . 'Classes/Reports/StatusProvider.php', 'tx_workspaces_service_autopublish' => $extensionPath . 'Classes/Service/AutoPublish.php', 'tx_workspaces_service_autopublishtask' => $extensionPath . 'Classes/Service/AutoPublishTask.php', 'tx_workspaces_service_befunc' => $extensionPath . 'Classes/Service/Befunc.php',