You are here

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

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

Build the query based upon the formula

Overrides views_handler_argument::query

File

ldap_views/handlers/ldap_views_handler_argument.inc, line 12
Basic textfield argument to handle known ldap attributes

Class

ldap_views_handler_argument
@file Basic textfield argument to handle known ldap attributes

Code

function query() {
  if ($this->real_field == 'basedn' || $this->real_field == 'filter') {
    $add_method = 'add_' . $this->real_field;
    $this->query
      ->{$add_method}($this->argument);
  }
  else {
    $this->query
      ->add_where(0, $this->real_field, $this->argument, '=');
  }
}