public function delete()
    {
        self::$instance->reset();
        $this->sql('DELETE');
        $this->oosql_where = null;
        $numargs = func_num_args();

        if ($numargs > 0) {
            if ($numargs > 1) {
                $this->oosql_del_multiFlag = true;
                $this->oosql_del_numargs = $numargs;
            }
            $arg_list = func_get_args();
            if (is_array($arg_list[0])) {
                $this->sql(' FROM ' . $this->oosql_table);
                $this->where($arg_list[0][0] . ' = ?', $arg_list[0][1]);
                return $this;
            }
            $this->oosql_sql .= ' FROM';
            for ($i = 0; $i < $numargs; $i++) {
                if ($i != 0 && $numargs > 1) {
                    $this->sql(',');
                }
                $this->sql(' ' . $arg_list[$i]);
            }

        } else {
            $this->oosql_fromFlag = true;
        }


        return $this;
    }
public function delete()
    {
        self::$instance->reset();
        $this->sql('DELETE');
        $this->oosql_where = null;
        $numargs = func_num_args();

        if ($numargs > 0) {
            if ($numargs > 1) {
                $this->oosql_del_multiFlag = true;
                $this->oosql_del_numargs = $numargs;
            }
            $arg_list = func_get_args();
            if (is_array($arg_list[0])) {
                $this->sql(' FROM ' . $this->oosql_table);
                $this->where($arg_list[0][0] . ' = ?', $arg_list[0][1]);
                return $this;
            }
            $this->oosql_sql .= ' FROM';
            for ($i = 0; $i < $numargs; $i++) {
                if ($i != 0 && $numargs > 1) {
                    $this->sql(',');
                }
                $this->sql(' ' . $arg_list[$i]);
            }

        } else {
            $this->oosql_fromFlag = true;
        }


        return $this;
    }
public function delete ( ) { self :: $ instance -> reset ( ) ; $ this -> sql ( 'DELETE' ) ; $ this -> oosql_where = null ; $ numargs = func_num_args ( ) ; if ( $ numargs > 0 ) { if ( $ numargs > 1 ) { $ this -> oosql_del_multiFlag = true ; $ this -> oosql_del_numargs = $ numargs ; } $ arg_list = func_get_args ( ) ; if ( is_array ( $ arg_list [ 0 ] ) ) { $ this -> sql ( ' FROM ' . $ this -> oosql_table ) ; $ this -> where ( $ arg_list [ 0 ] [ 0 ] . ' = ?' , $ arg_list [ 0 ] [ 1 ] ) ; return $ this ; } $ this -> oosql_sql .= ' FROM' ; for ( $ i = 0 ; $ i < $ numargs ; $ i ++ ) { if ( $ i != 0 && $ numargs > 1 ) { $ this -> sql ( ',' ) ; } $ this -> sql ( ' ' . $ arg_list [ $ i ] ) ; } } else { $ this -> oosql_fromFlag = true ; } return $ this ; }
Creates a DELETE query
@return \Phiber\oosql\oosql Instance
Creates a DELETE query