You are here

function views_plugin_query_default::get_where_args in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 7.3 plugins/views_plugin_query_default.inc \views_plugin_query_default::get_where_args()

Get the arguments attached to the WHERE and HAVING clauses of this query.

1 call to views_plugin_query_default::get_where_args()
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 1092
views_plugin_query_default.inc Defines the default query object which builds SQL to execute using the Drupal database API.

Class

views_plugin_query_default
Object used to create a SELECT query.

Code

function get_where_args() {
  $args = array();

  // Sort the groups by key, so the args are sorted right.
  ksort($this->where);
  ksort($this->having);
  foreach ($this->where as $group => $where) {
    $args = array_merge($args, $where['args']);
  }
  foreach ($this->having as $group => $having) {
    $args = array_merge($args, $having['args']);
  }
  return $args;
}