[TASK] Reports module based on extbase
[Packages/TYPO3.CMS.git] / typo3 / sysext / reports / ext_tables.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5
6 if (TYPO3_MODE === 'BE') {
7
8 Tx_Extbase_Utility_Extension::registerModule(
9 $_EXTKEY,
10 'tools',
11 'txreportsM1',
12 '',
13 array(
14 'Report' => 'index,detail',
15 ),
16 array(
17 'access' => 'admin',
18 'icon' => 'EXT:' . $_EXTKEY . '/Resources/Public/moduleicon.gif',
19 'labels' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xlf',
20 )
21 );
22
23 $statusReport = array(
24 'title' => 'LLL:EXT:reports/reports/locallang.xml:status_report_title',
25 'description' => 'LLL:EXT:reports/reports/locallang.xml:status_report_description',
26 'report' => 'tx_reports_reports_Status'
27 );
28
29 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'])) {
30 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array();
31 }
32
33 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'] = array_merge(
34 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status'],
35 $statusReport
36 );
37
38 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['typo3'][] = 'tx_reports_reports_status_Typo3Status';
39 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['system'][] = 'tx_reports_reports_status_SystemStatus';
40 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['security'][] = 'tx_reports_reports_status_SecurityStatus';
41 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = 'tx_reports_reports_status_ConfigurationStatus';
42 }
43
44 ?>