function views_plugin_query_default::set_distinct

Set the view to be distinct.

There are either distinct per base field or distinct in the pure sql way, based on $pure_distinct.

Parameters

bool $value: Should the view by distincted.

bool $pure_distinct: Should only the sql keyword be added.

1 call to views_plugin_query_default::set_distinct()
views_plugin_query_default::build in plugins/views_plugin_query_default.inc
Builds the necessary info to execute the query.

File

plugins/views_plugin_query_default.inc, line 180

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

public function set_distinct($value = TRUE, $pure_distinct = FALSE) {
    if (!(isset($this->no_distinct) && $value)) {
        $this->distinct = $value;
        $this->pure_distinct = $pure_distinct;
    }
}