2 namespace TYPO3\CMS\Reports\Report\Status;
47 $value =
$GLOBALS[
'LANG']->getLL(
'status_none');
48 $severity = ReportStatus::OK;
50 $xclasses = array_merge(
51 (array)
$GLOBALS[
'TYPO3_CONF_VARS'][
'BE'][
'XCLASS'],
52 (array)$GLOBALS[
'TYPO3_CONF_VARS'][
'FE'][
'XCLASS']
55 $numberOfXclasses = count($xclasses);
56 if ($numberOfXclasses > 0) {
57 $value = sprintf($GLOBALS[
'LANG']->getLL(
'status_oldXclassUsageFound'), $numberOfXclasses);
58 $message = $GLOBALS[
'LANG']->getLL(
'status_oldXclassUsageFound_message') .
'<br />';
59 $message .=
'<ol><li>' . implode(
'</li><li>', $xclasses) .
'</li></ol>';
60 $severity = ReportStatus::NOTICE;
65 $GLOBALS[
'LANG']->getLL(
'status_oldXclassUsage'),
80 $value =
$GLOBALS[
'LANG']->getLL(
'status_none');
81 $severity = ReportStatus::OK;
83 $xclassFoundArray = array();
84 if (array_key_exists(
'Objects',
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'])) {
85 foreach (
$GLOBALS[
'TYPO3_CONF_VARS'][
'SYS'][
'Objects'] as $originalClass => $override) {
86 if (array_key_exists(
'className', $override)) {
87 $xclassFoundArray[$originalClass] = $override[
'className'];
91 if (!empty($xclassFoundArray)) {
92 $value =
$GLOBALS[
'LANG']->getLL(
'status_xclassUsageFound');
93 $message =
$GLOBALS[
'LANG']->getLL(
'status_xclassUsageFound_message') .
'<br />';
95 foreach ($xclassFoundArray as $originalClass => $xClassName) {
96 $messageDetail = sprintf(
97 $GLOBALS[
'LANG']->getLL(
'status_xclassUsageFound_message_detail'),
101 $message .=
'<li>' . $messageDetail .
'</li>';
104 $severity = ReportStatus::NOTICE;
109 $GLOBALS[
'LANG']->getLL(
'status_xclassUsage'),
124 $value =
$GLOBALS[
'LANG']->getLL(
'status_disabled');
125 $severity = ReportStatus::OK;
127 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded(
'compatibility6')) {
128 $value =
$GLOBALS[
'LANG']->getLL(
'status_enabled');
129 $message =
$GLOBALS[
'LANG']->getLL(
'status_compatibility6Usage_message');
130 $severity = ReportStatus::WARNING;
135 $GLOBALS[
'LANG']->getLL(
'status_compatibility6Usage'),