Projet

Général

Profil

Paste
Télécharger (506 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / ldap / ldap_views / handlers / ldap_views_handler_argument.inc @ bc175c27

1
<?php
2

    
3
/**
4
 * @file
5
 * Basic textfield argument to handle known ldap attributes
6
 */
7

    
8
class ldap_views_handler_argument extends views_handler_argument {
9

    
10
  /**
11
   * Build the query based upon the formula
12
   */
13
  function query() {
14
    if ($this->real_field == 'basedn' || $this->real_field == 'filter') {
15
      $add_method = 'add_' . $this->real_field;
16
      $this->query->$add_method($this->argument);
17
    }
18
    else {
19
      $this->query->add_where(0, $this->real_field, $this->argument, '=');
20
    }
21
  }
22
}