You are here

function ldap_views_handler_filter::query in Lightweight Directory Access Protocol (LDAP) 7

Same name and namespace in other branches
  1. 8.2 ldap_views/handlers/ldap_views_handler_filter.inc \ldap_views_handler_filter::query()
  2. 7.2 ldap_views/handlers/ldap_views_handler_filter.inc \ldap_views_handler_filter::query()

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::query

File

ldap_views/handlers/ldap_views_handler_filter.inc, line 187
Basic textfield filter to handle string filtering commands including equality, contains, not contains, etc.

Class

ldap_views_handler_filter
@file Basic textfield filter to handle string filtering commands including equality, contains, not contains, etc.

Code

function query() {
  $this
    ->ensure_my_table();
  $field = $this->real_field;
  $info = $this
    ->operators();
  if (!empty($info[$this->operator]['method'])) {
    $this
      ->{$info[$this->operator]['method']}($field);
  }
}