public function update()
    {
        self::$instance->reset();
        $this->sql('UPDATE');

        $numargs = func_num_args();

        if ($numargs > 0) {
            $arg_list = func_get_args();

            $this->oosql_multiFlag = true;

            $this->oosql_multi = $arg_list;

            for ($i = 0; $i < $numargs; $i++) {
                if ($i != 0 && $numargs > $i) {
                    $this->sql(',');
                }
                $this->sql(' ' . $arg_list[$i]);
            }
        } else {
            $this->sql(" $this->oosql_table");
        }

        $this->sql(' SET ');
        $this->oosql_where = null;
        return $this;
    }
public function update()
    {
        self::$instance->reset();
        $this->sql('UPDATE');

        $numargs = func_num_args();

        if ($numargs > 0) {
            $arg_list = func_get_args();

            $this->oosql_multiFlag = true;

            $this->oosql_multi = $arg_list;

            for ($i = 0; $i < $numargs; $i++) {
                if ($i != 0 && $numargs > $i) {
                    $this->sql(',');
                }
                $this->sql(' ' . $arg_list[$i]);
            }
        } else {
            $this->sql(" $this->oosql_table");
        }

        $this->sql(' SET ');
        $this->oosql_where = null;
        return $this;
    }
public function update ( ) { self :: $ instance -> reset ( ) ; $ this -> sql ( 'UPDATE' ) ; $ numargs = func_num_args ( ) ; if ( $ numargs > 0 ) { $ arg_list = func_get_args ( ) ; $ this -> oosql_multiFlag = true ; $ this -> oosql_multi = $ arg_list ; for ( $ i = 0 ; $ i < $ numargs ; $ i ++ ) { if ( $ i != 0 && $ numargs > $ i ) { $ this -> sql ( ',' ) ; } $ this -> sql ( ' ' . $ arg_list [ $ i ] ) ; } } else { $ this -> sql ( " $this->oosql_table" ) ; } $ this -> sql ( ' SET ' ) ; $ this -> oosql_where = null ; return $ this ; }
Creates an UPDATE query
@return \Phiber\oosql\oosql Instance
Creates an UPDATE query