Projet

Général

Profil

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

root / drupal7 / sites / all / modules / ldap / ldap_servers / ldap_types / LdapTypeDefault.class.php @ 32700c57

1
<?php
2

    
3
/**
4
 * @file
5
 * Generic LDAP Implementation Details.
6
 */
7

    
8
module_load_include('php', 'ldap_servers', 'ldap_types/LdapTypeAbstract.class');
9
/**
10
 *
11
 */
12
class LdapTypeDefault extends LdapTypeAbstract {
13

    
14
  public $name = 'Default LDAP';
15
  public $typeId = 'Default';
16
  public $description = 'Other LDAP Type';
17
  public $port = 389;
18
  public $tls = 1;
19
  public $encrypted = 0;
20
  public $user_attr = 'cn';
21
  public $mail_attr = 'mail';
22
  public $supportsNestGroups = FALSE;
23

    
24
  /**
25
   * Constructor Method.
26
   */
27
  public function __construct($params = []) {
28
    foreach ($params as $k => $v) {
29
      if (property_exists($this, $k)) {
30
        $this->{$k} = $v;
31
      }
32
    }
33
  }
34

    
35
}