public function values()
    {

        $arg_list = func_get_args();

        $numargs = func_num_args();

        if (($this->oosql_numargs !== 0 && $numargs !== $this->oosql_numargs) || $numargs === 0) {
            $msg = 'Insert numargs: ' . $this->oosql_numargs . ' | values numargs = ' . $numargs . ', Columns and passed data do not match! ' . $this->sql();
            throw new \Exception($msg, 9809, null);
        }

        $this->sql(' VALUES (');

        for ($i = 0; $i < $numargs; $i++) {
            if ($i != 0 && $numargs > 1) {
                $this->sql(',');
            }

            if (is_array($arg_list[$i])) {
                $this->sql(rtrim(str_repeat('?,', count($arg_list[$i])), ','));
                $this->oosql_conValues += $arg_list[$i];
            } else {
                $this->oosql_conValues[] = $arg_list[$i];
                $this->sql(' ?');
            }
        }


        $this->sql(')');

        $this->oosql_fromFlag = false;
        return $this;
    }
public function values()
    {

        $arg_list = func_get_args();

        $numargs = func_num_args();

        if (($this->oosql_numargs !== 0 && $numargs !== $this->oosql_numargs) || $numargs === 0) {
            $msg = 'Insert numargs: ' . $this->oosql_numargs . ' | values numargs = ' . $numargs . ', Columns and passed data do not match! ' . $this->sql();
            throw new \Exception($msg, 9809, null);
        }

        $this->sql(' VALUES (');

        for ($i = 0; $i < $numargs; $i++) {
            if ($i != 0 && $numargs > 1) {
                $this->sql(',');
            }

            if (is_array($arg_list[$i])) {
                $this->sql(rtrim(str_repeat('?,', count($arg_list[$i])), ','));
                $this->oosql_conValues += $arg_list[$i];
            } else {
                $this->oosql_conValues[] = $arg_list[$i];
                $this->sql(' ?');
            }
        }


        $this->sql(')');

        $this->oosql_fromFlag = false;
        return $this;
    }
public function values ( ) { $ arg_list = func_get_args ( ) ; $ numargs = func_num_args ( ) ; if ( ( $ this -> oosql_numargs !== 0 && $ numargs !== $ this -> oosql_numargs ) || $ numargs === 0 ) { $ msg = 'Insert numargs: ' . $ this -> oosql_numargs . ' | values numargs = ' . $ numargs . ', Columns and passed data do not match! ' . $ this -> sql ( ) ; throw new \ Exception ( $ msg , 9809 , null ) ; } $ this -> sql ( ' VALUES (' ) ; for ( $ i = 0 ; $ i < $ numargs ; $ i ++ ) { if ( $ i != 0 && $ numargs > 1 ) { $ this -> sql ( ',' ) ; } if ( is_array ( $ arg_list [ $ i ] ) ) { $ this -> sql ( rtrim ( str_repeat ( '?,' , count ( $ arg_list [ $ i ] ) ) , ',' ) ) ; $ this -> oosql_conValues += $ arg_list [ $ i ] ; } else { $ this -> oosql_conValues [ ] = $ arg_list [ $ i ] ; $ this -> sql ( ' ?' ) ; } } $ this -> sql ( ')' ) ; $ this -> oosql_fromFlag = false ; return $ this ; }
Assembles values part of an insert
@throws \Exception
@return \Phiber\oosql\oosql Instance
Assembles values part of an insert