TYPO3 CMS  TYPO3_6-2
StatusReportConflictsCheckHook.php
Go to the documentation of this file.
1 <?php
3 
20 
26  public function getStatus() {
27  $reports = array(
28  'noConflictingExtensionISInstalled' => $this->checkIfNoConflictingExtensionIsInstalled()
29  );
30  return $reports;
31  }
32 
39  $title = $GLOBALS['LANG']->sL('LLL:EXT:rtehtmlarea/hooks/statusreport/locallang.xlf:title');
40  $conflictingExtensions = array();
41  if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['conflicts'])) {
42  foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['rtehtmlarea']['conflicts'] as $extensionKey => $version) {
43  if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded($extensionKey)) {
44  $conflictingExtensions[] = $extensionKey;
45  }
46  }
47  }
48  if (count($conflictingExtensions)) {
49  $value = $GLOBALS['LANG']->sL('LLL:EXT:rtehtmlarea/hooks/statusreport/locallang.xlf:keys') . ' ' . implode(', ', $conflictingExtensions);
50  $message = $GLOBALS['LANG']->sL('LLL:EXT:rtehtmlarea/hooks/statusreport/locallang.xlf:uninstall');
52  } else {
53  $value = $GLOBALS['LANG']->sL('LLL:EXT:rtehtmlarea/hooks/statusreport/locallang.xlf:none');
54  $message = '';
56  }
57  return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Reports\\Status', $title, $value, $message, $status);
58  }
59 
60 }
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]