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
Status.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Reports
;
3
21
class
Status
{
22
23
const
NOTICE
= -2;
24
const
INFO
= -1;
25
const
OK
= 0;
26
const
WARNING
= 1;
27
const
ERROR
= 2;
31
protected
$title
;
32
36
protected
$value
;
37
41
protected
$message
;
42
46
protected
$severity
;
47
60
public
function
__construct
(
$title
,
$value
,
$message
=
''
,
$severity
= self::OK) {
61
$this->title = (string)
$title
;
62
$this->value = (string)
$value
;
63
$this->message = (string)
$message
;
64
$this->severity =
\TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange
(
$severity
, self::NOTICE, self::ERROR, self::OK);
65
}
66
72
public
function
getTitle
() {
73
return
$this->title
;
74
}
75
81
public
function
getValue
() {
82
return
$this->value
;
83
}
84
90
public
function
getMessage
() {
91
return
$this->message
;
92
}
93
99
public
function
getSeverity
() {
100
return
$this->severity
;
101
}
102
108
public
function
__toString
() {
109
$severity
= array(
110
self::NOTICE =>
'NOTE'
,
111
self::INFO =>
'INFO'
,
112
self::OK =>
'OK'
,
113
self::WARNING =>
'WARN'
,
114
self::ERROR =>
'ERR'
115
);
116
// Max length 80 characters
117
$stringRepresentation = str_pad((
'['
.
$severity
[$this->severity] .
']'
), 7) . str_pad($this->title, 40) .
' - '
. substr($this->value, 0, 30);
118
return
$stringRepresentation;
119
}
120
121
}
TYPO3\CMS\Reports\Status\WARNING
const WARNING
Definition:
Status.php:26
TYPO3\CMS\Reports\Status\getMessage
getMessage()
Definition:
Status.php:90
TYPO3\CMS\Reports\Status\$severity
$severity
Definition:
Status.php:46
TYPO3\CMS\Reports\Status\getTitle
getTitle()
Definition:
Status.php:72
TYPO3\CMS\Reports\Status\__toString
__toString()
Definition:
Status.php:108
TYPO3\CMS\Reports\Status\ERROR
const ERROR
Definition:
Status.php:27
TYPO3\CMS\Reports\Status\__construct
__construct($title, $value, $message='', $severity=self::OK)
Definition:
Status.php:60
TYPO3\CMS\Core\Utility\MathUtility\forceIntegerInRange
static forceIntegerInRange($theInt, $min, $max=2000000000, $defaultValue=0)
Definition:
MathUtility.php:32
TYPO3\CMS\Reports\Status
Definition:
Status.php:21
TYPO3\CMS\Reports
TYPO3\CMS\Reports\Status\$value
$value
Definition:
Status.php:36
TYPO3\CMS\Reports\Status\INFO
const INFO
Definition:
Status.php:24
TYPO3\CMS\Reports\Status\$message
$message
Definition:
Status.php:41
TYPO3\CMS\Reports\Status\$title
$title
Definition:
Status.php:31
TYPO3\CMS\Reports\Status\getValue
getValue()
Definition:
Status.php:81
TYPO3\CMS\Reports\Status\getSeverity
getSeverity()
Definition:
Status.php:99
TYPO3\CMS\Reports\Status\OK
const OK
Definition:
Status.php:25
TYPO3\CMS\Reports\Status\NOTICE
const NOTICE
Definition:
Status.php:23
typo3
sysext
reports
Classes
Status.php
Generated on Wed Aug 7 2019 09:52:30 for TYPO3 CMS by
1.8.13