TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
WarningMessagePostProcessor.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Reports\Report\Status
;
3
21
class
WarningMessagePostProcessor
{
22
31
public
function
displayWarningMessages_postProcess
(array &$warningMessages) {
32
// Get highest severity
33
$registry
=
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance
(
'TYPO3\\CMS\\Core\\Registry'
);
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
}
TYPO3
TYPO3\CMS\Reports\Report\Status\WarningMessagePostProcessor
Definition:
WarningMessagePostProcessor.php:21
TYPO3\CMS\Reports\Report\Status\WarningMessagePostProcessor\displayWarningMessages_postProcess
displayWarningMessages_postProcess(array &$warningMessages)
Definition:
WarningMessagePostProcessor.php:31
TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance
static makeInstance($className)
Definition:
GeneralUtility.php:4424
$registry
$registry
Definition:
ext_tables.php:46
TYPO3\CMS\Reports\Report\Status
Definition:
ConfigurationStatus.php:2
$GLOBALS
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
Definition:
ext_localconf.php:5
TYPO3\CMS\Reports\Status\OK
const OK
Definition:
Status.php:25
typo3
sysext
reports
Classes
Report
Status
WarningMessagePostProcessor.php
Generated on Wed Aug 7 2019 09:52:30 for TYPO3 CMS by
1.8.13