You are here

public function DataQuery::__construct in Data 6

Creates an empty query.

Parameters

$table: Base table to operate on, also the subject table to delete from.

File

includes/DataHandler.inc, line 193
Definition of DataHandler class.

Class

DataQuery
Builds and executes a query, only delete queries are supported at the moment.

Code

public function __construct($table) {
  $this->table = db_escape_table($table);
  $this->subject = array(
    $this->table => $this->table,
  );
  $this->from = $this->table;
  $this->join = array();
  $this->where = array();
}