added check_profileOptions()
This commit is contained in:
parent
7fa9d49d1e
commit
87b3743d8b
|
@ -1,8 +1,8 @@
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta content="text/html; charset=ISO-8859-15"
|
<meta http-equiv="content-type"
|
||||||
http-equiv="content-type">
|
content="text/html; charset=ISO-8859-15">
|
||||||
<title>Module specification</title>
|
<title>Module specification</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -28,8 +28,8 @@ allowed to call other static functions.<br>
|
||||||
</h3>
|
</h3>
|
||||||
<h3>2.1.1. can_manage</h3>
|
<h3>2.1.1. can_manage</h3>
|
||||||
<br>
|
<br>
|
||||||
<table cellpadding="2" cellspacing="2" border="0"
|
<table style="text-align: left; width: 300px;" border="0"
|
||||||
style="text-align: left; width: 300px;">
|
cellspacing="2" cellpadding="2">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
|
@ -49,8 +49,8 @@ the account type ("user", "group", "host" at this time).<br>
|
||||||
<br>
|
<br>
|
||||||
<h3>2.1.2. get_alias</h3>
|
<h3>2.1.2. get_alias</h3>
|
||||||
<br>
|
<br>
|
||||||
<table style="text-align: left; width: 300px;" border="0"
|
<table cellpadding="2" cellspacing="2" border="0"
|
||||||
cellspacing="2" cellpadding="2">
|
style="text-align: left; width: 300px;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
|
@ -71,8 +71,8 @@ the account type ("user", "group", "host" at this time).<br>
|
||||||
<br>
|
<br>
|
||||||
<h3>2.1.3. is_base_module</h3>
|
<h3>2.1.3. is_base_module</h3>
|
||||||
<br>
|
<br>
|
||||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
<table cellpadding="2" cellspacing="2" border="0"
|
||||||
cellspacing="2" cellpadding="2">
|
style="text-align: left; width: 300px; height: 30px;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
|
@ -96,8 +96,8 @@ quota module is no base module as it needs posixAccount.<br>
|
||||||
<br>
|
<br>
|
||||||
<h3>2.1.4. get_ldap_filter</h3>
|
<h3>2.1.4. get_ldap_filter</h3>
|
||||||
<br>
|
<br>
|
||||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
<table cellpadding="2" cellspacing="2" border="0"
|
||||||
cellspacing="2" cellpadding="2">
|
style="text-align: left; width: 300px; height: 30px;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
|
@ -125,8 +125,8 @@ implement it.</span><br>
|
||||||
<br>
|
<br>
|
||||||
<h3>2.1.5. get_dependencies</h3>
|
<h3>2.1.5. get_dependencies</h3>
|
||||||
<br>
|
<br>
|
||||||
<table cellpadding="2" cellspacing="2" border="0"
|
<table style="text-align: left; width: 300px; font-weight: bold;"
|
||||||
style="text-align: left; width: 300px; font-weight: bold;">
|
border="0" cellspacing="2" cellpadding="2">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
|
@ -158,8 +158,8 @@ your module depends on one of these modules.<br>
|
||||||
<br>
|
<br>
|
||||||
<h3>2.1.6. get_profileOptions</h3>
|
<h3>2.1.6. get_profileOptions</h3>
|
||||||
<br>
|
<br>
|
||||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
<table cellpadding="2" cellspacing="2" border="0"
|
||||||
cellspacing="2" cellpadding="2">
|
style="text-align: left; width: 300px; height: 30px;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
|
@ -184,12 +184,40 @@ as keywords to load and save profiles. We recommend to use the module
|
||||||
name as prefix for them (e.g. posixAccount_homeDirectory) to avoid
|
name as prefix for them (e.g. posixAccount_homeDirectory) to avoid
|
||||||
naming confilcts.<br>
|
naming confilcts.<br>
|
||||||
<br>
|
<br>
|
||||||
|
<h3>2.1.7. check_profileOptions</h3>
|
||||||
|
<br>
|
||||||
|
<table style="text-align: left; width: 400px; height: 30px;" 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 check_profileOptions($scope,
|
||||||
|
$options)</span><br>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
This function checks the input for a new or modified account profile.<br>
|
||||||
|
<br>
|
||||||
|
<span style="font-weight: bold;">$scope</span> is the account type
|
||||||
|
("user", "group", "host" at this time).<br>
|
||||||
|
<span style="font-weight: bold;">$options</span> is an hash array
|
||||||
|
(option name => value) that contains the input. The option values
|
||||||
|
are all arrays containing one or more elements.<br>
|
||||||
|
If the input data is invalid the return value is an array that contains
|
||||||
|
arrays to build StatusMessages (0 => message type, 1 => message
|
||||||
|
head, 2 => message text, 3 => additional variables).<br>
|
||||||
|
If no errors occured the function returns an empty array.<span
|
||||||
|
style="font-weight: bold;"></span><br>
|
||||||
|
<br>
|
||||||
<br>
|
<br>
|
||||||
<h3>2.2. Class functions</h3>
|
<h3>2.2. Class functions</h3>
|
||||||
<h3>2.2.1. Constructor</h3>
|
<h3>2.2.1. Constructor</h3>
|
||||||
<br>
|
<br>
|
||||||
<table cellpadding="2" cellspacing="2" border="0"
|
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
||||||
style="text-align: left; width: 300px; height: 30px;">
|
cellspacing="2" cellpadding="2">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
|
@ -208,8 +236,8 @@ several helper functions.<br>
|
||||||
<br>
|
<br>
|
||||||
<h3>2.2.2. module_ready</h3>
|
<h3>2.2.2. module_ready</h3>
|
||||||
<br>
|
<br>
|
||||||
<table cellpadding="2" cellspacing="2" border="0"
|
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
||||||
style="text-align: left; width: 300px; height: 30px;">
|
cellspacing="2" cellpadding="2">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
|
@ -227,8 +255,8 @@ your module accepts input, otherwise <span style="font-weight: bold;">false</spa
|
||||||
<br>
|
<br>
|
||||||
<h3>2.2.3. module_complete</h3>
|
<h3>2.2.3. module_complete</h3>
|
||||||
<br>
|
<br>
|
||||||
<table style="text-align: left; width: 300px; height: 30px;" border="0"
|
<table cellpadding="2" cellspacing="2" border="0"
|
||||||
cellspacing="2" cellpadding="2">
|
style="text-align: left; width: 300px; height: 30px;">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td
|
<td
|
||||||
|
|
Loading…
Reference in New Issue