1 | <?php |
||
7 | class LDAPGroupMapping extends DataObject |
||
|
|||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private static $db = [ |
||
13 | 'DN' => 'Text', // the DN value of the LDAP object in AD, e.g. CN=Users,DN=playpen,DN=local |
||
14 | 'Scope' => 'Enum("Subtree,OneLevel","Subtree")' // the scope of the mapping |
||
15 | ]; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private static $has_one = [ |
||
21 | 'Group' => 'Group' |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | private static $summary_fields = [ |
||
28 | 'DN' |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * @var array |
||
33 | */ |
||
34 | private static $dependencies = [ |
||
35 | 'ldapService' => '%$LDAPService' |
||
36 | ]; |
||
37 | |||
38 | public function getCMSFields() |
||
66 | } |
||
67 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.