added can_mange() function
This commit is contained in:
parent
2486c3b75b
commit
6adb3a7958
|
@ -24,8 +24,30 @@ The class name of a module must contain only a-z, A-Z, 0-9, -, and _.<br>
|
|||
These functions are called without instanciating an object of the
|
||||
module class. They must not depend on class variables and are only
|
||||
allowed to call other static functions.<br>
|
||||
<h3><br>
|
||||
</h3>
|
||||
<h3>2.1.1. can_manage</h3>
|
||||
<br>
|
||||
<h3>2.1.1. get_alias</h3>
|
||||
<table style="text-align: left; width: 300px;" border="0"
|
||||
cellspacing="2" cellpadding="2">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td
|
||||
style="vertical-align: top; background-color: rgb(204, 204, 204); text-align: center;"><span
|
||||
style="font-weight: bold;">function can_manage($scope)</span><br>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
Returns <span style="font-style: italic;">true</span> if this module
|
||||
can manage accounts of type <span style="font-style: italic;">$scope</span>,
|
||||
otherwise <span style="font-style: italic;">false</span>.<br>
|
||||
The <span style="font-weight: bold;">$scope</span> parameter defines
|
||||
the account type ("user", "group", "host" at this time).<br>
|
||||
<br>
|
||||
<br>
|
||||
<h3>2.1.2. get_alias</h3>
|
||||
<br>
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px;">
|
||||
|
@ -47,7 +69,7 @@ a-z, A-Z, 0-9, -, _ and spaces.<br>
|
|||
The <span style="font-weight: bold;">$scope</span> parameter defines
|
||||
the account type ("user", "group", "host" at this time).<br>
|
||||
<br>
|
||||
<h3>2.1.2. is_base_module</h3>
|
||||
<h3>2.1.3. is_base_module</h3>
|
||||
<br>
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; height: 30px;">
|
||||
|
@ -72,7 +94,7 @@ E.g. modules that use the object class posixAccount may be base modules
|
|||
as it makes sense to manage these Unix accounts. On the other hand the
|
||||
quota module is no base module as it needs posixAccount.<br>
|
||||
<br>
|
||||
<h3>2.1.3. get_ldap_filter</h3>
|
||||
<h3>2.1.4. get_ldap_filter</h3>
|
||||
<br>
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; height: 30px;">
|
||||
|
@ -101,7 +123,7 @@ find the accounts for the lists.<br>
|
|||
is only used for base modules. Standard modules do not need to
|
||||
implement it.</span><br>
|
||||
<br>
|
||||
<h3>2.1.4. get_dependencies</h3>
|
||||
<h3>2.1.5. get_dependencies</h3>
|
||||
<br>
|
||||
<table style="text-align: left; width: 300px; font-weight: bold;"
|
||||
border="0" cellspacing="2" cellpadding="2">
|
||||
|
@ -134,7 +156,7 @@ your module depends on one of these modules.<br>
|
|||
=> array("exim"));</span><br
|
||||
style="font-weight: bold; font-style: italic;">
|
||||
<br>
|
||||
<h3>2.1.5. get_profileOptions</h3>
|
||||
<h3>2.1.6. get_profileOptions</h3>
|
||||
<br>
|
||||
<table cellpadding="2" cellspacing="2" border="0"
|
||||
style="text-align: left; width: 300px; height: 30px;">
|
||||
|
|
Loading…
Reference in New Issue