added getAccountModule

This commit is contained in:
Roland Gruber 2007-10-01 17:46:55 +00:00
parent 873f600ae8
commit f11b37bdf8
1 changed files with 14 additions and 1 deletions

View File

@ -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).
*