You are here

function views_handler_filter_term_edge_parent_tid::query in Taxonomy Edge 7.2

Add this filter to the query.

Due to the nature of fapi, the value and the operator have an unintended level of indirection. You will find them in $this->operator and $this->value respectively.

Overrides views_handler_filter_numeric::query

File

views_taxonomy_edge/handlers/views_handler_filter_term_edge_parent_tid.inc, line 7

Class

views_handler_filter_term_edge_parent_tid
@file

Code

function query() {
  $this
    ->ensure_my_table();
  $subquery = db_select('taxonomy_term_edge_path', 'path_parent')
    ->fields('path_parent', array(
    'pid',
  ))
    ->condition('tid', $this->value['value']);
  $this->query
    ->add_where(0, "{$this->table_alias}.{$this->real_field}", $subquery, 'IN');
}