added tools
This commit is contained in:
parent
6fa772f410
commit
223642ac13
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><title>LAM development documentation</title>
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="style/layout.css"><link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body>
|
||||
<div style="text-align: center;">
|
||||
|
@ -30,7 +31,7 @@ lists</a></li>
|
|||
<li><a href="tree_schema.htm">Tree view</a><br>
|
||||
</li>
|
||||
<li><a href="account_pages.htm">Account pages</a></li>
|
||||
<li>Tools</li>
|
||||
<li><a href="tools.htm">Tools</a></li>
|
||||
<ul>
|
||||
<li><a href="profile_editor.htm">Profile editor</a></li>
|
||||
<li><a href="samba_domains.htm">Samba 3 domains</a></li>
|
||||
|
|
|
@ -0,0 +1,109 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head>
|
||||
|
||||
|
||||
|
||||
<meta content="text/html; charset=ISO-8859-15" http-equiv="content-type"><title>Tools</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="style/layout.css">
|
||||
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico"></head><body>
|
||||
<h1 style="text-align: center;">Tools<br>
|
||||
</h1>
|
||||
|
||||
LAM includes a "Tools" page which contains various tools like the
|
||||
profile editor or the file upload. The content of this page is dynamic.
|
||||
LAM includes all *.inc files in the directory lib/tools. Each found
|
||||
class which implements the LAMtool interface is a candidate for this
|
||||
page. The different tools are displayed and ordered based on their
|
||||
security level and ordering preferences.<br>
|
||||
<br>
|
||||
<span style="font-weight: bold;">Example:</span><br>
|
||||
<br>
|
||||
The profile editor implements the LAMtool interface.<br>
|
||||
<br>
|
||||
|
||||
<table style="width: 100%; text-align: left;" class="mod-code" border="0" cellpadding="2" cellspacing="2">
|
||||
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="vertical-align: top;">/**<br>
|
||||
* Profile editor<br>
|
||||
* <br>
|
||||
* @package tools<br>
|
||||
*/ <br>
|
||||
class <span style="font-weight: bold;">toolProfileEditor</span> implements <span style="font-weight: bold;">LAMTool</span> {<br>
|
||||
<br>
|
||||
/**<br>
|
||||
* Returns the name of the tool.<br>
|
||||
* <br>
|
||||
* @return string name<br>
|
||||
*/<br>
|
||||
function <span style="font-weight: bold;">getName</span>() {<br>
|
||||
return _("Profile editor");<br>
|
||||
}<br>
|
||||
<br>
|
||||
/**<br>
|
||||
* returns a description text for the tool.<br>
|
||||
* <br>
|
||||
* @return string description<br>
|
||||
*/<br>
|
||||
function <span style="font-weight: bold;">getDescription</span>() {<br>
|
||||
return _("Here you can manage your account profiles.");<br>
|
||||
}<br>
|
||||
<br>
|
||||
/**<br>
|
||||
* Returns a link to the tool page (relative to templates/).<br>
|
||||
* <br>
|
||||
* @return string link<br>
|
||||
*/<br>
|
||||
function <span style="font-weight: bold;">getLink</span>() {<br>
|
||||
return "profedit/profilemain.php";<br>
|
||||
}<br>
|
||||
<br>
|
||||
/** <br>
|
||||
* Returns if the tool requires write access to LDAP.<br>
|
||||
* <br>
|
||||
* @return boolean true if write access is needed<br>
|
||||
*/<br>
|
||||
function <span style="font-weight: bold;">getRequiresWriteAccess</span>() {<br>
|
||||
return true;<br>
|
||||
}<br>
|
||||
<br>
|
||||
/**<br>
|
||||
* Returns if the tool requires password change rights.<br>
|
||||
* <br>
|
||||
* @return boolean true if password change rights are needed<br>
|
||||
*/<br>
|
||||
function <span style="font-weight: bold;">getRequiresPasswordChangeRights</span>() {<br>
|
||||
return true;<br>
|
||||
}<br>
|
||||
<br>
|
||||
/**<br>
|
||||
* Returns the link to the tool image (relative to graphics/)<br>
|
||||
*<br>
|
||||
* @return string image URL<br>
|
||||
*/<br>
|
||||
function <span style="font-weight: bold;">getImageLink</span>() {<br>
|
||||
return 'edit.png';<br>
|
||||
}<br>
|
||||
<br>
|
||||
/**<br>
|
||||
* Returns the prefered position of this tool on the tools page.<br>
|
||||
* The position may be between 0 and 1000. 0 is the top position.<br>
|
||||
*<br>
|
||||
* @return int prefered position<br>
|
||||
*/<br>
|
||||
function <span style="font-weight: bold;">getPosition</span>() {<br>
|
||||
return 100;<br>
|
||||
}<br>
|
||||
<br>
|
||||
}<br>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
|
||||
</body></html>
|
Loading…
Reference in New Issue