dynamic inclusion of JS files
This commit is contained in:
parent
debd56df9a
commit
edc61df738
|
@ -1,128 +1,182 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
|
||||
<title>Upgrade notes</title>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
|
||||
<title>Upgrade notes</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;">
|
||||
|
||||
|
||||
<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
|
||||
|
||||
</head><body>
|
||||
<h1>Upgrade notes</h1>
|
||||
<div style="text-align: left;">
|
||||
|
||||
This is a list of API changes for all LAM releases.
|
||||
<br><br>
|
||||
<h2>2.8.0 -> 2.9.0</h2>
|
||||
Several functions of the <span style="font-weight: bold;">cache</span> class were removed.<br>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
<h2>2.9.0 -> 3.0.0</h2>
|
||||
|
||||
You can now integrate JavaScript libraries by simply putting the files
|
||||
into templates/lib. All files with the name *.js are automatically
|
||||
included on all pages.<br>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<h2>2.8.0 -> 2.9.0</h2>
|
||||
|
||||
Several functions of the <span style="font-weight: bold;">cache</span>
|
||||
class were removed.<br>
|
||||
|
||||
<br>
|
||||
<br>
|
||||
|
||||
<h2>2.5.0 -> 2.6.0</h2>
|
||||
The class <span style="font-weight: bold; font-style: italic;">baseType</span> has two new member variables:<br>
|
||||
|
||||
The class <span style="font-weight: bold; font-style: italic;">baseType</span>
|
||||
has two new member variables:<br>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>$LABEL_CREATE_ANOTHER_ACCOUNT</li>
|
||||
<li>$LABEL_BACK_TO_ACCOUNT_LIST</li>
|
||||
</ul>
|
||||
|
||||
They can be used to show a more specific text when the user is asked to
|
||||
create another account or return back to the account list.<br>
|
||||
<br>
|
||||
The meta HTML code now supports image buttons.<br>
|
||||
<br>
|
||||
<br>
|
||||
<h2>2.4.0 -> 2.5.0</h2>
|
||||
<h3>Self service</h3>
|
||||
<span style="font-weight: bold;">$selfServiceSettings</span> in class <span style="font-style: italic;">baseModule</span> is now an object of the class <span style="font-style: italic;">selfServiceProfile.</span> This way all profile settings can be read. To access the module settings use <span style="font-weight: bold;">$this->selfServiceSettings->moduleSettings</span>.<br>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
The meta HTML code now supports image buttons.<br>
|
||||
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
<h2>2.4.0 -> 2.5.0</h2>
|
||||
|
||||
<h3>Self service</h3>
|
||||
|
||||
<span style="font-weight: bold;">$selfServiceSettings</span> in class <span style="font-style: italic;">baseModule</span> is now an object of the
|
||||
class <span style="font-style: italic;">selfServiceProfile.</span>
|
||||
This way all profile settings can be read. To access the module
|
||||
settings use <span style="font-weight: bold;">$this->selfServiceSettings->moduleSettings</span>.<br>
|
||||
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
<h2>2.2.0 -> 2.3.0</h2>
|
||||
|
||||
<h3>Style changes</h3>
|
||||
If you have defined your own account types then you need to update your CSS files (style/type_<type>.css).<br>
|
||||
|
||||
If you have defined your own account types then you need to update your
|
||||
CSS files (style/type_<type>.css).<br>
|
||||
|
||||
Please change "table.<type>list input,select" to
|
||||
"table.<type>list input,select,button" and
|
||||
"fieldset.<type>edit input" to "fieldset.<type>edit
|
||||
input,select,button". "fieldset.<type>edit select" may be deleted
|
||||
afterwards.<br>
|
||||
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
<h2>2.1.0 -> 2.2.0</h2>
|
||||
|
||||
<h3>Account lists</h3>
|
||||
Account lists now support to define tools. These are displayed as linked images like the edit and delete links in the list.<br>
|
||||
|
||||
Overwrite <span style="font-weight: bold;">lamList::getAdditionalTools()</span> to use this feature.<br>
|
||||
Account lists now support to define tools. These are displayed as
|
||||
linked images like the edit and delete links in the list.<br>
|
||||
|
||||
Overwrite <span style="font-weight: bold;">lamList::getAdditionalTools()</span>
|
||||
to use this feature.<br>
|
||||
|
||||
<br>
|
||||
|
||||
The definition of account list options changed. The function <span style="font-weight: bold;">lamList::getAdditionalTools()</span> is no longer available. Use these functions instead: <span style="font-weight: bold;">lamList::listGetAllConfigOptions()</span> and <span style="font-weight: bold;">lamList::listConfigurationChanged()</span>.<br>
|
||||
The definition of account list options changed. The function <span style="font-weight: bold;">lamList::getAdditionalTools()</span> is no
|
||||
longer available. Use these functions instead: <span style="font-weight: bold;">lamList::listGetAllConfigOptions()</span>
|
||||
and <span style="font-weight: bold;">lamList::listConfigurationChanged()</span>.<br>
|
||||
|
||||
All options are now saved in cookies for one year.<br>
|
||||
|
||||
<br>
|
||||
|
||||
<h3>Base module</h3>
|
||||
|
||||
|
||||
The <span style="font-weight: bold;">baseModule</span> class has a new protected option: <span style="font-weight: bold;">$autoAddObjectClasses </span>You can set it to false if you do not want that your module's object classes are added when creating or loading an account.<br>
|
||||
The <span style="font-weight: bold;">baseModule</span> class has a new
|
||||
protected option: <span style="font-weight: bold;">$autoAddObjectClasses
|
||||
</span>You can set it to false if you do not want that your module's
|
||||
object classes are added when creating or loading an account.<br>
|
||||
|
||||
<br>
|
||||
|
||||
Account modules can now have icons. See <span style="font-weight: bold;">baseModule->getIcon()</span>.<br>
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
<h3>Constructors</h3>
|
||||
|
||||
LAM now uses the PHP5 syntax for constructors: <span style="font-weight: bold;">__construct()<br>
|
||||
<br>
|
||||
</span>
|
||||
<h3>Extended security model</h3>
|
||||
|
||||
Each server profile now defines an access level.<br>
|
||||
|
||||
<br>
|
||||
|
||||
Currently these are:<br>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>write access</li>
|
||||
<li>password changes</li>
|
||||
<li>read access<br>
|
||||
</li>
|
||||
</ul>
|
||||
<span style="font-weight: bold;"></span> Please check your code and prohibit any actions which do not fit the current access level.<br>
|
||||
There are two new functions in <span style="font-style: italic;">security.inc</span>: <span style="font-weight: bold;">checkIfWriteAccessIsAllowed()</span> and <span style="font-weight: bold;">checkIfPasswordChangeIsAllowed()</span><br>
|
||||
|
||||
<span style="font-weight: bold;"></span> Please check your code and
|
||||
prohibit any actions which do not fit the current access level.<br>
|
||||
|
||||
There are two new functions in <span style="font-style: italic;">security.inc</span>:
|
||||
<span style="font-weight: bold;">checkIfWriteAccessIsAllowed()</span>
|
||||
and <span style="font-weight: bold;">checkIfPasswordChangeIsAllowed()</span><br>
|
||||
|
||||
Only LAM Pro allows to change the access level from <span style="font-style: italic;">write access</span> to a smaller level.<br>
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
<br>
|
||||
|
||||
<h2>2.0.0 -> 2.1.0</h2>
|
||||
|
||||
<h3><span style="font-weight: bold;">Style changes</span></h3>
|
||||
|
||||
|
||||
<ul>
|
||||
|
||||
<li>"fieldset.<type>edit fieldset" and "fieldset.<type>edit fieldset fieldset" were removed.</li>
|
||||
<li>"table.<type>list input" changed to "table.<type>list input,select"</li>
|
||||
<li>"fieldset.<type>edit fieldset" and
|
||||
"fieldset.<type>edit fieldset fieldset" were removed.</li>
|
||||
<li>"table.<type>list input" changed to "table.<type>list
|
||||
input,select"</li>
|
||||
</ul>
|
||||
|
||||
<h3><span style="font-weight: bold;">baseModule</span></h3>
|
||||
|
||||
|
||||
The class variable<span style="font-style: italic;"> $base</span> is no longer visible in child classes. Please use <span style="font-style: italic;">$this->getAccountContainer()</span> to access the accountContainer object.<br>
|
||||
The class variable<span style="font-style: italic;"> $base</span>
|
||||
is no longer visible in child classes. Please use <span style="font-style: italic;">$this->getAccountContainer()</span> to
|
||||
access the accountContainer object.<br>
|
||||
|
||||
<br>
|
||||
|
||||
Several other class variables in accountContainer etc. are now private. Use the new access methods.<br>
|
||||
Several other class variables in accountContainer etc. are now private.
|
||||
Use the new access methods.<br>
|
||||
|
||||
<br>
|
||||
|
||||
|
@ -130,7 +184,8 @@ Several other class variables in accountContainer etc. are now private. Use the
|
|||
|
||||
<h2>1.3.0 -> 2.0.0</h2>
|
||||
|
||||
LAM is now PHP5 only. Several variables are now private and need to be accessed via functions.<br>
|
||||
LAM is now PHP5 only. Several variables are now private and need to be
|
||||
accessed via functions.<br>
|
||||
|
||||
<br>
|
||||
|
||||
|
@ -140,7 +195,6 @@ LAM is now PHP5 only. Several variables are now private and need to be accessed
|
|||
|
||||
<h3><span style="font-weight: bold;">New lamList functions</span></h3>
|
||||
|
||||
|
||||
<ul>
|
||||
|
||||
<li><span style="font-weight: bold;">listPrintTableCellContent():</span>
|
||||
|
@ -153,7 +207,8 @@ function. The controls will be placed under the account table.<br>
|
|||
</li>
|
||||
</ul>
|
||||
|
||||
No more lamdaemon commands via delete_attributes() and save_attributes() in account modules.<br>
|
||||
No more lamdaemon commands via delete_attributes() and
|
||||
save_attributes() in account modules.<br>
|
||||
|
||||
Please use these new functions to call lamdaemon directly:<br>
|
||||
|
||||
|
@ -171,7 +226,6 @@ Please use these new functions to call lamdaemon directly:<br>
|
|||
|
||||
<h3><span style="font-weight: bold;">API changes</span></h3>
|
||||
|
||||
|
||||
<ul>
|
||||
|
||||
<li>removed get_configDescription() from module interface</li>
|
||||
|
@ -183,10 +237,11 @@ Please use these new functions to call lamdaemon directly:<br>
|
|||
|
||||
<h3><span style="font-weight: bold;">API changes</span></h3>
|
||||
|
||||
|
||||
<ul>
|
||||
|
||||
<li>removed $post parameters from module functions (delete_attributes(), process_...(), display_html_...()). Use $_POST instead.</li>
|
||||
<li>removed $post parameters from module functions
|
||||
(delete_attributes(), process_...(), display_html_...()). Use $_POST
|
||||
instead.</li>
|
||||
<li>process_...()
|
||||
functions: returned messages are no longer grouped (e.g. return:
|
||||
array(array('INFO', 'headline', 'text'), array('INFO', 'headline2',
|
||||
|
@ -197,17 +252,16 @@ array(array('INFO', 'headline', 'text'), array('INFO', 'headline2',
|
|||
|
||||
<h2>1.0.0 -> 1.0.2</h2>
|
||||
|
||||
|
||||
|
||||
<h3><span style="font-weight: bold;">New module functions</span></h3>
|
||||
|
||||
|
||||
<ul>
|
||||
|
||||
<li>getRequiredExtensions: Allows to define required PHP extensions</li>
|
||||
<li>getManagedObjectClasses: Definition of managed object classes for this module</li>
|
||||
<li>getManagedObjectClasses: Definition of managed object classes for
|
||||
this module</li>
|
||||
<li>getLDAPAliases: list of LDAP alias names which are replaced by LAM</li>
|
||||
<li>getManagedAttributes: list of LDAP attributes which are managed by this module</li>
|
||||
<li>getManagedAttributes: list of LDAP attributes which are managed
|
||||
by this module</li>
|
||||
</ul>
|
||||
|
||||
The LDAP attributes are no longer loaded by reading the LDAP schema. If
|
||||
|
@ -218,8 +272,6 @@ have to use getManagedAttributes() or the meta data to specify them.<br>
|
|||
|
||||
The class variable "triggered_messages" in baseModule was removed.<br>
|
||||
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
</body></html>
|
Loading…
Reference in New Issue