You are here

public function DataQuery::addJoin in Data 6

Add a join.

Parameters

$table: The table to join to.

$join: The columns to join on.

File

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

Class

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

Code

public function addJoin($table, $join, $type = 'INNER JOIN') {
  $this->join[$table] = array(
    $join,
    $type,
  );
}