TYPO3 CMS  TYPO3_6-2
ext_tables.php
Go to the documentation of this file.
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)) {
9  'TYPO3.CMS.' . $_EXTKEY,
10  'web',
11  'workspaces',
12  'before:info',
13  array(
14  // An array holding the controller-action-combinations that are accessible
15  'Review' => 'index,fullIndex,singleIndex',
16  'Preview' => 'index,newPage'
17  ),
18  array(
19  'access' => 'user,group',
20  'icon' => 'EXT:workspaces/Resources/Public/Images/moduleicon.gif',
21  'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xlf',
22  'navigationComponentId' => 'typo3-pagetree'
23  )
24  );
25 
26  // register ExtDirect
28  'TYPO3.Workspaces.ExtDirect',
29  'TYPO3\\CMS\\Workspaces\\ExtDirect\\ExtDirectServer',
30  'web_WorkspacesWorkspaces',
31  'user,group'
32  );
34  'TYPO3.Workspaces.ExtDirectActions',
35  'TYPO3\\CMS\\Workspaces\\ExtDirect\\ActionHandler',
36  'web_WorkspacesWorkspaces',
37  'user,group'
38  );
40  'TYPO3.Workspaces.ExtDirectMassActions',
41  'TYPO3\\CMS\\Workspaces\\ExtDirect\\MassActionHandler',
42  'web_WorkspacesWorkspaces',
43  'user,group'
44  );
46  'TYPO3.Ajax.ExtDirect.ToolbarMenu',
47  'TYPO3\\CMS\\Workspaces\\ExtDirect\\ToolbarMenu'
48  );
49 }
50 
51 // todo move icons to Core sprite or keep them here and remove the todo note ;)
52 $icons = array(
53  'sendtonextstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtonextstage.png',
54  'sendtoprevstage' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/version-workspace-sendtoprevstage.png',
55  'generatepreviewlink' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Images/generate-ws-preview-link.png'
56 );
58 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('sys_workspace_stage', 'EXT:workspaces/Resources/Private/Language/locallang_csh_sysws_stage.xlf');
static addSingleIcons(array $icons, $extKey='')
const TYPO3_MODE
Definition: init.php:40
die
Definition: index.php:6
static registerModule($extensionName, $mainModuleName='', $subModuleName='', $position='', array $controllerActions=array(), array $moduleConfiguration=array())
if(!defined('TYPO3_MODE')) if(TYPO3_MODE=='BE' &&!(TYPO3_REQUESTTYPE &TYPO3_REQUESTTYPE_INSTALL)) $icons
Definition: ext_tables.php:52
static registerExtDirectComponent($endpointName, $callbackClass, $moduleName=NULL, $accessLevel=NULL)