You are here

ldap_views_handler_argument.inc in Lightweight Directory Access Protocol (LDAP) 8.2

Basic textfield argument to handle known ldap attributes

File

ldap_views/handlers/ldap_views_handler_argument.inc
View source
<?php

/**
 * @file
 * Basic textfield argument to handle known ldap attributes
 */
class ldap_views_handler_argument extends views_handler_argument {

  /**
   * Build the query based upon the formula
   */
  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, '=');
    }
  }

}

Classes

Namesort descending Description
ldap_views_handler_argument @file Basic textfield argument to handle known ldap attributes