protected static function getParmas($row, $closeChar)
    {
        $params = '';
        $rest = '';
        $taken = false;
        $string = false; // 1 "" - 2 ''
        $opened = 0; // 1 "" - 2 ''
        //
        for ($j = 0; $j < strlen($row); $j++) {
            //
            if ($row[$j] == "'" && !$string) {
                $string = 2;
            } elseif ($row[$j] == '"' && !$string) {
                $string = 1;
            } elseif ($row[$j] == "'" && $string) {
                $string = false;
            } elseif ($row[$j] == '"' && $string) {
                $string = false;
            }
            //
            if ($row[$j] == '(') {
                $opened++;
            } elseif ($row[$j] == ')') {
                $opened--;
            }
            //
            if (!$string && $opened == 0 && $row[$j] == $closeChar && !$taken) {
                $taken = true;
            } elseif (!$taken) {
                $params .= $row[$j];
            } elseif ($taken) {
                $rest .= $row[$j];
            }
        }
        //
        return ['params' => $params, 'rest' => $rest];
    }