1 | <?php |
||
19 | { |
||
20 | /** |
||
21 | * @var array |
||
22 | */ |
||
23 | private static $db = [ |
||
|
|||
24 | // Unique user identifier, same field is used by SAMLMemberExtension |
||
25 | 'GUID' => 'Varchar(50)', |
||
26 | 'DN' => 'Text', |
||
27 | 'LastSynced' => 'DBDatetime' |
||
28 | ]; |
||
29 | |||
30 | /** |
||
31 | * A SilverStripe group can have several mappings to LDAP groups. |
||
32 | * @var array |
||
33 | */ |
||
34 | private static $has_many = [ |
||
35 | 'LDAPGroupMappings' => LDAPGroupMapping::class, |
||
36 | ]; |
||
37 | |||
38 | /** |
||
39 | * Add a field to the Group_Members join table so we can keep track |
||
40 | * of Members added to a mapped Group. |
||
41 | * |
||
42 | * See {@link LDAPService::updateMemberFromLDAP()} for more details |
||
43 | * on how this gets used. |
||
44 | * |
||
45 | * @var array |
||
46 | */ |
||
47 | private static $many_many_extraFields = [ |
||
48 | 'Members' => [ |
||
49 | 'IsImportedFromLDAP' => 'Boolean' |
||
50 | ] |
||
51 | ]; |
||
52 | |||
53 | /** |
||
54 | * {@inheritDoc} |
||
55 | * @param FieldList $fields |
||
56 | */ |
||
57 | public function updateCMSFields(FieldList $fields) |
||
106 | } |
||
107 | } |
||
108 | |||
109 | /** |
||
110 | * LDAPGroupMappings are inherently relying on groups and can be removed now. |
||
111 | */ |
||
112 | public function onBeforeDelete() |
||
116 | } |
||
117 | } |
||
118 | } |
||
119 |
This check marks private properties in classes that are never used. Those properties can be removed.