Debian Codegraph @

lib/tools/schemaBrowser.inc

raw
1 <?php
2
3 namespace LAM\TOOLS\SCHEMA;
4
5 use LAMTool;
6
7 /*
8
9 This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
10 Copyright (C) 2009 - 2022 Roland Gruber
11
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
16
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25
26 */
27
28 /**
29 * This file includes the schema browser tool specification.
30 *
31 * @author Roland Gruber
32 * @package tools
33 */
34
35 /**
36 * Schema browser
37 *
38 * @package tools
39 */
40 class toolSchemaBrowser extends LAMTool {
41
42 /**
43 * {@inheritDoc}
44 */
45 public function getName(): string {
46 return _("Schema browser");
47 }
48
49 /**
50 * {@inheritDoc}
51 */
52 public function getDescription(): string {
53 return _("Here you can browse LDAP object classes and attributes.");
54 }
55
56 /**
57 * {@inheritDoc}
58 */
59 public function getLink(): string {
60 return "schema/schema.php";
61 }
62
63 /**
64 * {@inheritDoc}
65 */
66 public function getRequiresWriteAccess(): bool {
67 return false;
68 }
69
70 /**
71 * {@inheritDoc}
72 */
73 public function getRequiresPasswordChangeRights(): bool {
74 return false;
75 }
76
77 /**
78 * {@inheritDoc}
79 */
80 public function getImageLink(): string {
81 return 'world-color.svg';
82 }
83
84 /**
85 * {@inheritDoc}
86 */
87 public function getPosition(): int {
88 return 600;
89 }
90
91 /**
92 * {@inheritDoc}
93 */
94 public function isVisible(): bool {
95 return true;
96 }
97
98 }