DiagnosticResult
This documentation is for an outdated Matomo version.
Click here if you want to read this article for the latest version.
Click here if you want to read this article for the latest version.
Piwik\Plugins\Diagnostics\Diagnostic\
DiagnosticResult
The result of a diagnostic.
Methods
The class defines the following methods:
__construct()singleResult()informationalResult()getLabel()getItems()addItem()setItems()getLongErrorMessage()setLongErrorMessage()getStatus()— Returns the worst status of the items.
__construct()
Signature
- It accepts the following parameter(s):
$label
singleResult()
Signature
It accepts the following parameter(s):
$label(string) —$status(string) —$comment(string) —
It returns a
DiagnosticResultvalue.
informationalResult()
Signature
It accepts the following parameter(s):
$label(string) —$comment(string) —$escapeComment(bool) —
It returns a
DiagnosticResultvalue.
getLabel()
Signature
- It returns a
stringvalue.
getItems()
Signature
- It returns a
DiagnosticResultItem[]value.
addItem()
Signature
It accepts the following parameter(s):
$item(DiagnosticResultItem) —
It does not return anything or a mixed result.
setItems()
Signature
It accepts the following parameter(s):
$items(array) —
It does not return anything or a mixed result.
getLongErrorMessage()
Signature
- It returns a
stringvalue.
setLongErrorMessage()
Signature
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.
Signature
- Returns:
string— One of theSTATUS_*constants.