Piwik\Plugins\Diagnostics\Diagnostic\

DiagnosticResult

The result of a diagnostic.

Methods

The class defines the following methods:

__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 DiagnosticResult value.

informationalResult()

Signature

  • It accepts the following parameter(s):

    • $label (string) —

    • $comment (string) —

    • $escapeComment (bool) —

  • It returns a DiagnosticResult value.

getLabel()

Signature

  • It returns a string value.

getItems()

Signature

addItem()

Signature

  • It accepts the following parameter(s):

  • 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 string value.

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 the STATUS_* constants.

jsonSerialize()

Signature

  • It returns a array value.