From f11b37bdf8ec3e58c6c66c9ff509a02c40eb24af Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Mon, 1 Oct 2007 17:46:55 +0000 Subject: [PATCH] added getAccountModule --- lam/lib/modules.inc | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lam/lib/modules.inc b/lam/lib/modules.inc index cfaabe7c..b3b0bcea 100644 --- a/lam/lib/modules.inc +++ b/lam/lib/modules.inc @@ -791,7 +791,20 @@ class accountContainer { /** True if this is a newly created account */ var $isNewAccount; - + /** + * Returns the account module with the given class name + * + * @param string $name class name (e.g. posixAccount) + */ + function getAccountModule($name) { + if (isset($this->module[$name])) { + return $this->module[$name]; + } + else { + return null; + } + } + /** * Returns the accout type of this object (e.g. user, group, host). *