account types added

This commit is contained in:
Roland Gruber 2006-01-25 18:06:16 +00:00
parent c08032d44b
commit 6a8082abda
8 changed files with 127 additions and 5 deletions

View File

@ -39,7 +39,7 @@ to be implemented.<br>
<h2>Module detection</h2> <h2>Module detection</h2>
New modules can simply be copied to <span style="font-weight: bold;">lib/modules</span>. New modules can simply be copied to <span style="font-weight: bold;">lib/modules</span>.
LAM will check what files are inside the directory and provide the user LAM will check what files are inside the directory and provide the user
new modules automtically.<br> new modules automatically.<br>
There is no extra configuration file.<br> There is no extra configuration file.<br>
<br> <br>
<br> <br>

View File

@ -21,7 +21,7 @@ in <span style="font-style: italic;">modules.inc</span>.<br>
<br> <br>
<h3>General functions:</h3> <h3>General functions:</h3>
<span style="font-weight: bold;">getModuleAlias:</span> This returns <span style="font-weight: bold;">getModuleAlias:</span> This returns
the alias name of a module. It is used label buttons or fieldsets.<br> the alias name of a module. It is used to label buttons or fieldsets.<br>
<br> <br>
<span style="font-weight: bold;">parseHtml:</span> Converts the LAM <span style="font-weight: bold;">parseHtml:</span> Converts the LAM
meta HTML code to real HTML code.<br> meta HTML code to real HTML code.<br>

View File

@ -0,0 +1,46 @@
<!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>Account types</title>
<link rel="stylesheet" type="text/css" href="style/layout.css">
</head>
<body>
<h1 style="text-align: center;">Account types<br>
</h1>
<div style="text-align: center;"><img alt="base module"
src="images/lam_baseType.png"><br>
</div>
<div style="text-align: center;"><br>
<div style="text-align: left;">The account types define what kind of
accounts can be managed with LAM. If you want to create a new account
module which does not fit in the existing classes of users, groups and
hosts then you need your own account type.<br>
<br>
All account types are saved in <span style="font-weight: bold;">lib/types/</span>.<br>
<br>
Please take a look at the <a href="type_index.htm">type HowTo</a> for
an example to write your own types.<br>
The complete specification for the type interface can be found <a
href="types-specification.htm">here</a>.<br>
<br>
<h2>Superclass</h2>
All <span style="font-weight: bold;">account types</span> should be
subclasses of the <a href="base_type.htm">baseType</a>.<br>
This reduces very much the code since not the complete type interface
has
to be implemented.<br>
<br>
<br>
<h2>Type detection</h2>
New types can simply be copied to <span style="font-weight: bold;">lib/types</span>.
LAM will check what files are inside the directory and provide the user
new types automatically.<br>
There is no extra configuration file.<br>
<br>
<br>
</div>
</div>
</body>
</html>

View File

@ -0,0 +1,42 @@
<!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>Account types (types.inc)</title>
<link rel="stylesheet" type="text/css" href="style/layout.css">
</head>
<body>
<h1 style="text-align: center;">Account types (types.inc)<br>
</h1>
<br>
<span style="font-style: italic;">Types.inc</span> is the interface to
the account types. It provides information about the type alias names,
descriptions and other things.<br>
<br>
<h2>Functions:</h2>
<br>
<h3>General functions:</h3>
<span style="font-weight: bold;">getAlias:</span> This returns
the alias name of a type. It is used to label buttons or fieldsets.<br>
<br>
<span style="font-weight: bold;">getDescription:</span> Returns a
description for the account type.<br>
<span style="font-weight: bold;"></span><br>
<br>
<h3>Functions for list views:</h3>
<span style="font-weight: bold;">getListClassName:</span> Here you can
specify your own class to handle the list view.&nbsp; This is needed to
label the buttons in the list view.<br>
<br>
<span style="font-weight: bold;">getDefaultListAttributes:</span>
Returns the default setting for the displayed list attributes. It is
used as default for the LAM configuration.<br>
<br>
<span style="font-weight: bold;">getListAttributeDescriptions:</span>
Returns a hash array which contains predefined, translated descriptions
of LDAP attributes.<br>
<br>
<span style="font-weight: bold;"></span><br>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!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>Base type</title>
<link rel="stylesheet" type="text/css" href="style/layout.css">
</head>
<body>
<h1 style="text-align: center;">Base type<br>
</h1>
<div style="text-align: center;"><img alt="base type"
src="images/lam_baseType.png"><br>
</div>
<div style="text-align: center;"><br>
<div style="text-align: left;">The <span style="font-weight: bold;">baseType</span>
is the parent class of all account types. <br>
It implements all functions of the <a href="types-specification.htm">type
interface</a>.<br>
<br>
However, you surely want to override most of the functions in your
account type class.<br>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

@ -11,8 +11,12 @@ These documents are supposed to give developers who want to modify LAM
an overview of the codebase. It focuses mainly on what is done to an overview of the codebase. It focuses mainly on what is done to
generate the HTML output and the most important functions provided by generate the HTML output and the most important functions provided by
the library files.<br> the library files.<br>
<br>
<br>
<img src="images/lam_overview.png" alt="overview" align="middle" <img src="images/lam_overview.png" alt="overview" align="middle"
border="0" height="620" width="877"><br> border="0"><br>
<br>
<br>
<br> <br>
<div style="text-align: left;"> <div style="text-align: left;">
<table style="text-align: left; width: 100%;" border="0" cellpadding="2" <table style="text-align: left; width: 100%;" border="0" cellpadding="2"
@ -45,7 +49,8 @@ lists</a></li>
<h2>Libraries:</h2> <h2>Libraries:</h2>
<ul> <ul>
<li><a href="account_modules_lib.htm">Account modules <li><a href="account_modules_lib.htm">Account modules
(modules.inc)</a><br> (modules.inc)</a></li>
<li><a href="account_types_lib.htm">Account types (types.inc)</a><br>
</li> </li>
<li><a href="pdf_libs.htm">PDF (pdf.inc, pdfstruct.inc)</a><br> <li><a href="pdf_libs.htm">PDF (pdf.inc, pdfstruct.inc)</a><br>
</li> </li>
@ -74,9 +79,12 @@ browser</a><br>
<td style="vertical-align: top; width: 33%;"> <td style="vertical-align: top; width: 33%;">
<h2>Configuration files:</h2> <h2>Configuration files:</h2>
<ul> <ul>
<li><a href="base_module.htm">Base module</a><br> <li><a href="base_module.htm">Base module</a></li>
<li><a href="base_type.htm">Base type</a><br>
</li> </li>
<li><a href="account_modules.htm">Account modules</a></li> <li><a href="account_modules.htm">Account modules</a></li>
<li><a href="account_types.htm">Account types</a><br>
</li>
<li><a href="pdf_profiles.htm">PDF templates</a></li> <li><a href="pdf_profiles.htm">PDF templates</a></li>
<li><a href="profile_files.htm">Account profiles</a></li> <li><a href="profile_files.htm">Account profiles</a></li>
<li><a href="config_files.htm">Configuration profiles</a><br> <li><a href="config_files.htm">Configuration profiles</a><br>