Piwik\Plugins\Diagnostics\Diagnostic\
The result of a diagnostic.
The class defines the following methods:
__construct()
singleResult()
informationalResult()
getLabel()
getItems()
addItem()
setItems()
getLongErrorMessage()
setLongErrorMessage()
getStatus()
— Returns the worst status of the items.__construct()
$label
singleResult()
It accepts the following parameter(s):
$label
(string
) —
$status
(string
) —
$comment
(string
) —
It returns a DiagnosticResult
value.
informationalResult()
It accepts the following parameter(s):
$label
(string
) —
$comment
(string
) —
$escapeComment
(bool
) —
It returns a DiagnosticResult
value.
getLabel()
string
value.getItems()
DiagnosticResultItem[]
value.addItem()
It accepts the following parameter(s):
$item
(DiagnosticResultItem
) —It does not return anything or a mixed result.
setItems()
It accepts the following parameter(s):
$items
(array
) —It does not return anything or a mixed result.
getLongErrorMessage()
string
value.setLongErrorMessage()
It accepts the following parameter(s):
$longErrorMessage
(string
) —It does not return anything or a mixed result.
getStatus()
Returns the worst status of the items.
string
—
One of the STATUS_*
constants.