[TASK] Add unit tests for stdWrap_date()
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / ext_tables.php
index 5eca5e3..af1dfda 100644 (file)
@@ -5,7 +5,7 @@ defined('TYPO3_MODE') or die();
 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        /** Registers a Backend Module */
        \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule(
-               'TYPO3.CMS.' . $_EXTKEY,
+               'TYPO3.CMS.Workspaces',
                'web',
                'workspaces',
                'before:info',
@@ -16,8 +16,8 @@ if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
                ),
                array(
                        'access' => 'user,group',
-                       'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif',
-                       'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
+                       'icon' => 'EXT:workspaces/Resources/Public/Icons/module-workspaces.svg',
+                       'labels' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_mod.xlf',
                        'navigationComponentId' => 'typo3-pagetree'
                )
        );
@@ -25,33 +25,31 @@ if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
        // register ExtDirect
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
                'TYPO3.Workspaces.ExtDirect',
-               'TYPO3\\CMS\\Workspaces\\ExtDirect\\ExtDirectServer',
+               \TYPO3\CMS\Workspaces\ExtDirect\ExtDirectServer::class,
                'web_WorkspacesWorkspaces',
                'user,group'
        );
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
                'TYPO3.Workspaces.ExtDirectActions',
-               'TYPO3\\CMS\\Workspaces\\ExtDirect\\ActionHandler',
+               \TYPO3\CMS\Workspaces\ExtDirect\ActionHandler::class,
                'web_WorkspacesWorkspaces',
                'user,group'
        );
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
                'TYPO3.Workspaces.ExtDirectMassActions',
-               'TYPO3\\CMS\\Workspaces\\ExtDirect\\MassActionHandler',
+               \TYPO3\CMS\Workspaces\ExtDirect\MassActionHandler::class,
                'web_WorkspacesWorkspaces',
                'user,group'
        );
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerExtDirectComponent(
-               'TYPO3.Ajax.ExtDirect.ToolbarMenu',
-               'TYPO3\\CMS\\Workspaces\\ExtDirect\\ToolbarMenu'
-       );
+
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('Workspaces::setWorkspace', \TYPO3\CMS\Workspaces\Controller\AjaxController::class . '->setWorkspace');
 }
 
-// todo move icons to Core sprite or keep them here and remove the todo note ;)
+// @todo move icons to Core sprite or keep them here and remove the todo note ;)
 $icons = array(
-       'sendtonextstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtonextstage.png',
-       'sendtoprevstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtoprevstage.png',
-       'generatepreviewlink' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png'
+       'sendtonextstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('workspaces') . 'Resources/Public/Images/version-workspace-sendtonextstage.png',
+       'sendtoprevstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('workspaces') . 'Resources/Public/Images/version-workspace-sendtoprevstage.png',
+       'generatepreviewlink' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('workspaces') . 'Resources/Public/Images/generate-ws-preview-link.png'
 );
-\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, $_EXTKEY);
+\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, 'workspaces');
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xlf');