You are here

public function DataQuery::addWhere in Data 6

Add a where clause.

Parameters

$clause: The actual clause. Caller is responsible for referring to existing fields and supplying correct placeholder for value.

$value: The value the clause compares against.

File

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

Class

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

Code

public function addWhere($clause, $value = NULL) {
  $this->where[$clause] = $value;
}