You are here

function views_query::get_where_args in Views (for Drupal 7) 6.2

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

File

includes/query.inc, line 1000
query.inc Defines the query object which is the underlying layer in a View.

Class

views_query
Object used to create a SELECT query.

Code

function get_where_args() {
  $args = array();
  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;
}