Back to PhocacartPosPrint class

Method printLine

public
printLine
(mixed $items, mixed $class = '')

Method printLine - Source code

public function printLine($items, $class = '')
{
    $o = '';
    $startTag = '<div>';
    $endTag = '</div>';
    if ($class != '') {
        $startTag = '<div class="' . $class . '">';
    }
    if (!empty($items)) {
        foreach ($items as $k => $v) {
            $o .= $startTag . $v . $endTag . $this->lineEnd;
        }
    }
    return $o;
}