function views_plugin_query_default::get_where_args

Same name in other branches
  1. 7.x-3.x 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

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;
}