function views_plugin_query::set_group_operator

Same name in other branches
  1. 7.x-3.x plugins/views_plugin_query.inc \views_plugin_query::set_group_operator()

Control how all WHERE and HAVING groups are put together.

Parameters

$type: Either 'AND' or 'OR'

File

plugins/views_plugin_query.inc, line 157

Class

views_plugin_query
Object used to create a SELECT query.

Code

function set_group_operator($type = 'AND') {
    $this->group_operator = strtoupper($type);
}