DiagnosticResult
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.jsonSerialize()
__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.
jsonSerialize()
Signature
- It returns a
arrayvalue.