public static function concat($items)
    {
        if (is_string($items)) {
            $lines = explode("\n", $items);
            $str = '';
            foreach ($lines as $line) {
                $str .= trim($line);
            }
            $items = explode('|', $str);
        }
        $txt = '';
        foreach ($items as $value) {
            if (!preg_match('/^\{[^}]+\}$/', $value)) {
                $value = '"' . str_replace('"', '\"', $value) . '"';
            } else {
                $value = substr($value, 1, -1);
            }
            $txt = $txt === '' ? $value : 'CONCAT(' . $txt . ', ' . $value . ')';
        }
        return $txt;
    }