[CLEANUP] Remove misleading report
[Packages/TYPO3.CMS.git] / typo3 / sysext / workspaces / ext_tables.php
1 <?php
2 if (!defined ('TYPO3_MODE')) {
3 die ('Access denied.');
4 }
5 // avoid that this block is loaded in the frontend or within the upgrade-wizards
6 if (TYPO3_MODE == 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
7 /**
8 * Registers a Backend Module
9 */
10 Tx_Extbase_Utility_Extension::registerModule(
11 $_EXTKEY,
12 'web', // Make module a submodule of 'web'
13 'workspaces', // Submodule key
14 'before:info', // Position
15 array(
16 // An array holding the controller-action-combinations that are accessible
17 'Review' => 'index,fullIndex,singleIndex',
18 'Preview' => 'index,newPage'
19 ),
20 array(
21 'access' => 'user,group',
22 'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif',
23 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml',
24 'navigationComponentId' => 'typo3-pagetree',
25 )
26 );
27
28 // register ExtDirect
29 t3lib_extMgm::registerExtDirectComponent(
30 'TYPO3.Workspaces.ExtDirect',
31 t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/Server.php:Tx_Workspaces_ExtDirect_Server',
32 'web_WorkspacesWorkspaces',
33 'user,group'
34 );
35
36 t3lib_extMgm::registerExtDirectComponent(
37 'TYPO3.Workspaces.ExtDirectActions',
38 t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ActionHandler.php:Tx_Workspaces_ExtDirect_ActionHandler',
39 'web_WorkspacesWorkspaces',
40 'user,group'
41 );
42
43 t3lib_extMgm::registerExtDirectComponent(
44 'TYPO3.Workspaces.ExtDirectMassActions',
45 t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/MassActionHandler.php:Tx_Workspaces_ExtDirect_MassActionHandler',
46 'web_WorkspacesWorkspaces',
47 'user,group'
48 );
49
50 t3lib_extMgm::registerExtDirectComponent(
51 'TYPO3.Ajax.ExtDirect.ToolbarMenu',
52 t3lib_extMgm::extPath($_EXTKEY) . 'Classes/ExtDirect/ToolbarMenu.php:Tx_Workspaces_ExtDirect_ToolbarMenu'
53 );
54 }
55
56 /**
57 * Table "sys_workspace":
58 */
59 $TCA['sys_workspace'] = array(
60 'ctrl' => array(
61 'label' => 'title',
62 'tstamp' => 'tstamp',
63 'title' => 'LLL:EXT:lang/locallang_tca.xml:sys_workspace',
64 'adminOnly' => 1,
65 'rootLevel' => 1,
66 'delete' => 'deleted',
67 'iconfile' => 'sys_workspace.png',
68 'typeicon_classes' => array(
69 'default' => 'mimetypes-x-sys_workspace'
70 ),
71 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
72 'versioningWS_alwaysAllowLiveEdit' => TRUE,
73 'dividers2tabs' => TRUE
74 )
75 );
76
77 /**
78 * Table "sys_workspace_stage":
79 * Defines single custom stages which are related to sys_workspace table to create complex working processes
80 * This is only the 'header' part (ctrl). The full configuration is found in t3lib/stddb/tbl_be.php
81 */
82 $TCA['sys_workspace_stage'] = array(
83 'ctrl' => array(
84 'label' => 'title',
85 'tstamp' => 'tstamp',
86 'sortby' => 'sorting',
87 'title' => 'LLL:EXT:workspaces/Resources/Private/Language/locallang_db.xml:sys_workspace_stage',
88 'adminOnly' => 1,
89 'rootLevel' => 1,
90 'hideTable' => TRUE,
91 'delete' => 'deleted',
92 'iconfile' => 'sys_workspace.png',
93 'typeicon_classes' => array(
94 'default' => 'mimetypes-x-sys_workspace'
95 ),
96 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php',
97 'versioningWS_alwaysAllowLiveEdit' => TRUE,
98 'dividers2tabs' => TRUE
99 )
100 );
101 // todo move icons to Core sprite or keep them here and remove the todo note ;)
102 $icons = array(
103 'sendtonextstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtonextstage.png',
104 'sendtoprevstage' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtoprevstage.png',
105 'generatepreviewlink' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png',
106 );
107 t3lib_SpriteManager::addSingleIcons($icons, $_EXTKEY);
108 t3lib_extMgm::addLLrefForTCAdescr('sys_workspace_stage','EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xml');
109
110
111 ?>