public function views_plugin_query_default::get_where_args in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.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.
File
- plugins/
views_plugin_query_default.inc, line 1424 - Definition of views_plugin_query_default.
Class
- views_plugin_query_default
- Object used to create a SELECT query.
Code
public 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;
}