From 995c0675246ec870fc09b6d419bdfdcb57d71ca8 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Wed, 23 Mar 2011 17:52:45 +0000 Subject: [PATCH] changes in self service --- lam/docs/devel/upgrade.htm | 93 +++++++++++++++++++---------- lam/lib/modules/asteriskAccount.inc | 3 +- lam/lib/modules/posixAccount.inc | 3 +- 3 files changed, 66 insertions(+), 33 deletions(-) diff --git a/lam/docs/devel/upgrade.htm b/lam/docs/devel/upgrade.htm index 4dc24816..b46d3c76 100644 --- a/lam/docs/devel/upgrade.htm +++ b/lam/docs/devel/upgrade.htm @@ -1,17 +1,6 @@ - - - - - - - - - - - Upgrade notes @@ -29,62 +18,103 @@ This is a list of API changes for all LAM releases.
-

3.3.0 -> 3.4.0

Module interface:
+

3.3.0 -> 3.4.0

+ +Module interface:
+ +
+

3.2.0 -> 3.3.0

-The cache class was removed. Please use local caching and the functions searchLDAP... instead of get_cache().
-The return values for baseModule::pre/postDeleteActions() were changed to an array of StatusMessage parameters. -
CSS class TYPElist-sort removed without replacement.
+ +The cache class was removed. Please use local caching and the functions +searchLDAP... instead of get_cache().
+ +The return values for baseModule::pre/postDeleteActions() were changed +to an array of StatusMessage parameters.
+ +CSS class TYPElist-sort removed without replacement.
+ +
+

3.1.0 -> 3.2.0

-Account types: The CSS classes have changed. + +Account types: The CSS classes +have changed. +
-

3.0.0 -> 3.1.0

Module interface: There is a new object-oriented library to + +
+ +

3.0.0 -> 3.1.0

+ +Module interface: There is a +new object-oriented library to generate HTML for the account modules (e.g. used for display_html_attributes()). This will allow additional functionality like client side validation. Please see lib/html.inc or package metaHTML in the phpdoc documentation.
-Attention: The getSelfServiceOptions() function no longer supports the old meta HTML. The other functions will support the old array-based meta HTML elements only until Q2/2011!
+ +Attention: The getSelfServiceOptions() +function no longer supports the old meta HTML. The other functions will +support the old array-based meta HTML elements only until Q2/2011!
+
+ The PDF editor now supports descriptive PDF fields. You can use this by returning an associative array for the PDF fields (e.g. array('macAddress' => _('MAC address'))) in get_pdfFields() or the meta data.
-The old format is still supported. LAM will continue to show the field name as label in this case.
-
-
-

2.9.0 -> 3.0.0

+The old format is still supported. LAM will continue to show the field +name as label in this case.
+ +
+ +
+ +

2.9.0 -> 3.0.0

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.
+ There is a new log level LOG_DEBUG available for logNewMessage().
+

Module interface:

+ The function build_uploadAccounts() has a new parameter $selectedModules.
+

Type interface:

+The new function supportsFileUpload() +specifies if file uploads are supported (default true).
-The new function supportsFileUpload() specifies if file uploads are supported (default true).

+

2.8.0 -> 2.9.0

@@ -93,6 +123,7 @@ Several functions of the cache class were removed.

+

2.5.0 -> 2.6.0

diff --git a/lam/lib/modules/asteriskAccount.inc b/lam/lib/modules/asteriskAccount.inc index 5bb69ab4..5c4e4c1a 100644 --- a/lam/lib/modules/asteriskAccount.inc +++ b/lam/lib/modules/asteriskAccount.inc @@ -238,7 +238,8 @@ class asteriskAccount extends baseModule implements passwordService { $return['config_options']['user'] = $configContainer; // self service options $selfServiceContainer = new htmlTable(); - $selfServiceContainer->addElement(new htmlTableExtendedInputField(_('Asterisk realm'), 'asteriskAccount_AsteriskRealm', null, 'AsteriskRealm')); + $selfServiceContainer->addElement(new htmlTableExtendedInputField(_('Asterisk realm'), 'asteriskAccount_AsteriskRealm', null)); + $selfServiceContainer->addElement(new htmlHelpLink('AsteriskRealm', get_class($this))); $return['selfServiceSettings'] = $selfServiceContainer; // profile options $profileContainer = new htmlTable(); diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 65bfed01..bf8f71d3 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -146,7 +146,8 @@ class posixAccount extends baseModule implements passwordService { // self service configuration settings $selfServiceContainer = new htmlTable(); $selfServiceContainer->addElement(new htmlTableExtendedSelect('posixAccount_pwdHash', array("CRYPT", "SHA", "SSHA", "MD5", "SMD5", "PLAIN"), - array('SSHA'), _("Password hash type"), 'pwdHash')); + array('SSHA'), _("Password hash type"))); + $selfServiceContainer->addElement(new htmlHelpLink('pwdHash', get_class($this))); $return['selfServiceSettings'] = $selfServiceContainer; } // profile checks