1<?php
2namespace LAM\TOOLS\MULTI_EDIT;
3/*
4$Id$
5
6  This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
7  Copyright (C) 2013 - 2016  Roland Gruber
8
9  This program is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  GNU General Public License for more details.
18
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22
23*/
24
25/**
26* Multi edit tool that allows LDAP operations on multiple entries.
27*
28* @author Roland Gruber
29* @package tools
30*/
31
32/**
33 * Multi edit tool that allows LDAP operations on multiple entries.
34 *
35 * @package tools
36 */
37class toolMultiEdit implements \LAMTool {
38
39	/**
40	 * Returns the name of the tool.
41	 *
42	 * @return string name
43	 */
44	 function getName() {
45	 	return _("Multi edit");
46	 }
47
48	/**
49	 * returns a description text for the tool.
50	 *
51	 * @return string description
52	 */
53	function getDescription() {
54		return _("Performs modifications on multiple LDAP entries.");
55	}
56
57	/**
58	 * Returns a link to the tool page (relative to templates/).
59	 *
60	 * @return string link
61	 */
62	function getLink() {
63		return "tools/multiEdit.php";
64	}
65
66	/**
67	 * Returns if the tool requires write access to LDAP.
68	 *
69	 * @return boolean true if write access is needed
70	 */
71	function getRequiresWriteAccess() {
72		return true;
73	}
74
75	/**
76	 * Returns if the tool requires password change rights.
77	 *
78	 * @return boolean true if password change rights are needed
79	 */
80	function getRequiresPasswordChangeRights() {
81		return true;
82	}
83
84	/**
85	 * Returns the link to the tool image (relative to graphics/)
86	 *
87	 * @return string image URL
88	 */
89	function getImageLink() {
90		return 'edit.png';
91	}
92
93	/**
94	 * Returns the preferred position of this tool on the tools page.
95	 * The position may be between 0 and 1000. 0 is the top position.
96	 *
97	 * @return int preferred position
98	 */
99	function getPosition() {
100		return 400;
101	}
102
103	/**
104	 * Returns a list of sub tools or an empty array.
105	 *
106	 * @return array list of subtools (LAMTool)
107	 */
108	function getSubTools() {
109		return array();
110	}
111
112	/**
113	 * Returns if the tool is visible in the menu.
114	 *
115	 * @return boolean visible
116	 */
117	function isVisible() {
118		return true;
119	}
120
121	/**
122	 * Returns if a tool may be hidden by configuration in the LAM server profile.
123	 *
124	 * @return boolean hideable
125	 */
126	function isHideable() {
127		return true;
128	}
129
130}
131
132?>