Back to PhocacartPosPrint class

Method printSeparator

public
printSeparator
(mixed $sep = '', mixed $class = '')

Method printSeparator - Source code

public function printSeparator($sep = '', $class = '')
{
    if ($sep == '') {
        $sep = $this->lineSeparator;
    }
    $lineEnd = $this->lineEnd;
    if ($sep == '_') {
        $lineEnd = $this->lineEnd . $this->lineEnd;
    }
    $startTag = '<div>';
    $endTag = '</div>';
    if ($class != '') {
        $startTag = '<div class="' . $class . '">';
    }
    if ($class == 'pDoubleSize') {
        return $startTag . str_repeat($sep, $this->lineLengthDoubleSize) . $endTag . $lineEnd;
    } else {
        return $startTag . str_repeat($sep, $this->lineLength) . $endTag . $lineEnd;
    }
}