Projet

Général

Profil

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

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

1
<?php
2

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

    
8
/**
9
 *
10
 */
11
class ldap_views_handler_argument extends views_handler_argument {
12

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

    
26
}