TYPO3 CMS  TYPO3_6-2
WarningMessagePostProcessor.php
Go to the documentation of this file.
1 <?php
3 
22 
31  public function displayWarningMessages_postProcess(array &$warningMessages) {
32  // Get highest severity
34  $highestSeverity = $registry->get('tx_reports', 'status.highestSeverity', NULL);
35  if (!is_null($highestSeverity)) {
36  if ($highestSeverity > \TYPO3\CMS\Reports\Status::OK) {
37  // Display a message that there's something wrong and that
38  // the admin should take a look at the detailed status report
39  $GLOBALS['LANG']->includeLLFile('EXT:reports/reports/locallang.xlf');
40  $reportModuleIdentifier = 'system_ReportsTxreportsm1';
41  $reportModuleParameters = array(
42  'tx_reports_system_reportstxreportsm1[extension]=tx_reports',
43  'tx_reports_system_reportstxreportsm1[report]=status',
44  'tx_reports_system_reportstxreportsm1[action]=detail',
45  'tx_reports_system_reportstxreportsm1[controller]=Report',
46  );
47  $warningMessages['tx_reports_status_notification'] = sprintf(
48  $GLOBALS['LANG']->getLL('status_problemNotification'),
49  '<a href="javascript:top.goToModule(\'' . $reportModuleIdentifier . '\', 1, \'&' . implode('&', $reportModuleParameters) . '\');">', '</a>'
50  );
51  }
52  }
53  }
54 
55 }
displayWarningMessages_postProcess(array &$warningMessages)
$registry
Definition: ext_tables.php:46
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]