Révision 32700c57
Ajouté par Assos Assos il y a environ 5 ans
drupal7/sites/all/modules/ldap/ldap_servers/ldap_types/LdapTypeAbstract.class.php | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* abstract class to represent an ldap implementation type
|
|
5 |
* Abstract class to represent an ldap implementation type
|
|
6 | 6 |
* such as active directory, open ldap, novell, etc. |
7 |
* |
|
8 | 7 |
*/ |
9 | 8 |
|
9 |
/** |
|
10 |
* |
|
11 |
*/ |
|
10 | 12 |
abstract class LdapTypeAbstract { |
11 | 13 |
|
12 | 14 |
public $name; |
13 | 15 |
public $typeId; |
14 | 16 |
public $description; |
15 | 17 |
|
16 |
// ldap_servers configuration |
|
18 |
/** |
|
19 |
* Ldap_servers configuration. |
|
20 |
*/ |
|
17 | 21 |
public $port = 389; |
18 | 22 |
public $tls = 0; |
19 | 23 |
public $encrypted = 0; |
... | ... | |
22 | 26 |
public $groupObjectClassDefault = NULL; |
23 | 27 |
public $groupDerivationModelDefault = NULL; |
24 | 28 |
|
25 |
// ldap_authorization configuration |
|
29 |
/** |
|
30 |
* Ldap_authorization configuration. |
|
31 |
*/ |
|
26 | 32 |
public $deriveFromDn = FALSE; |
27 | 33 |
public $deriveFromAttr = FALSE; |
28 | 34 |
public $deriveFromEntry = FALSE; |
29 | 35 |
public $groupMembershipsAttr = NULL; |
30 |
public $groupMembershipsAttrMatchingUserAttr = FALSE; // can be removed in 2.0 branch |
|
36 |
/** |
|
37 |
* Can be removed in 2.0 branch. |
|
38 |
*/ |
|
39 |
public $groupMembershipsAttrMatchingUserAttr = FALSE; |
|
31 | 40 |
|
32 |
/** |
|
33 |
* Constructor Method |
|
34 |
* |
|
41 |
/** |
|
42 |
* Constructor Method. |
|
35 | 43 |
*/ |
36 |
function __construct($params = array()) {
|
|
44 |
public function __construct($params = []) {
|
|
37 | 45 |
foreach ($params as $k => $v) { |
38 | 46 |
if (property_exists($this, $k)) { |
39 | 47 |
$this->{$k} = $v; |
... | ... | |
41 | 49 |
} |
42 | 50 |
} |
43 | 51 |
|
44 |
|
|
45 |
|
|
46 |
|
|
47 | 52 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules