From e7434df3a18849bfcbb50f9a06b3b00d0fe62e74 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 21 Apr 2014 10:32:00 +0000 Subject: [PATCH] made can_manage() abstract in baseModule to save memory --- lam/docs/devel/upgrade.htm | 13 ++++++++++++- lam/docs/manual-sources/howto.xml | 19 ++++++++++++++++--- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/lam/docs/devel/upgrade.htm b/lam/docs/devel/upgrade.htm index aa14ad4a..215a1f78 100644 --- a/lam/docs/devel/upgrade.htm +++ b/lam/docs/devel/upgrade.htm @@ -19,6 +19,7 @@ + @@ -39,7 +40,17 @@ This is a list of API changes for all LAM releases.
-

4.2 -> 4.3

Ldap::new_rand() was replaced by getRandomNumber() in lib/account.inc.
+

4.5 -> 4.6

The valid account types for each module must now +be set in can_manage(). This function is abstract in base module. +Setting the account type via meta data is no longer supported.
+
+Example:
+
    public function can_manage() {
+
        return in_array($this->get_scope(), array('user', 'host'));
+
    }
+
+

4.2 -> 4.3

+Ldap::new_rand() was replaced by getRandomNumber() in lib/account.inc.
Module interface: