added getAccountModule
This commit is contained in:
parent
873f600ae8
commit
f11b37bdf8
|
@ -791,6 +791,19 @@ class accountContainer {
|
||||||
/** True if this is a newly created account */
|
/** True if this is a newly created account */
|
||||||
var $isNewAccount;
|
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).
|
* Returns the accout type of this object (e.g. user, group, host).
|
||||||
|
|
Loading…
Reference in New Issue