class_supannConfig.inc 1.88 KB
Newer Older
1
2
3
<?php
/*
  This code is part of FusionDirectory (http://www.fusiondirectory.org/)
Mortier Benoit's avatar
Mortier Benoit committed
4
  Copyright (C) 2013-2016 FusionDirectory
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 2 of the License, or
  (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/

class supannConfig extends simplePlugin
{
23
  static function plInfo (): array
24
  {
25
    return [
26
27
      'plShortName'     => _('SupAnn configuration'),
      'plDescription'   => _('FusionDirectory SupAnn plugin configuration'),
28
29
30
      'plObjectClass'   => ['fdSupannPluginConf'],
      'plCategory'      => ['configuration'],
      'plObjectType'    => ['smallConfig'],
31

32
      'plProvidedAcls'  => parent::generatePlProvidedAcls(static::getAttributesInfo())
33
    ];
34
35
  }

36
  static function getAttributesInfo (): array
37
  {
38
39
    return [
      'main' => [
40
        'name'  => _('SupAnn'),
41
        'attrs' => [
42
          new StringAttribute(
43
            _('SupAnn RDN'), _('Branch in which SupAnn structures will be stored'),
44
45
46
            'fdSupannStructuresRDN', TRUE,
            'ou=structures'
          ),
47
          new BooleanAttribute(
48
            _('SupAnn mail for recovery'), _('Allow the use of mail addresses from the personal mail address field from SupAnn account for password recovery'),
49
50
51
            'fdSupannPasswordRecovery', FALSE,
            TRUE
          ),
52
53
54
        ]
      ],
    ];
55
56
  }
}