Horde_Test::_outputLine PHP Method

_outputLine() protected method

Internal output function.
protected _outputLine ( array $entry ) : string
$entry array Array with the following values:
1st value: Header
2nd value: Test Result
3rd value: Error message (if present)
4th value: Error level (if present): 0 = error, 1 = warning
return string HTML output.
    protected function _outputLine($entry)
    {
        $output = '<li>' . array_shift($entry) . ': ' . array_shift($entry);
        if (!empty($entry)) {
            $msg = array_shift($entry);
            $output .= '<br /><strong style="color:' . (empty($entry) || !array_shift($entry) ? 'red' : 'orange') . '">' . $msg . "</strong>\n";
        }
        return $output . "</li>\n";
    }