diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 5f388892..21257bee 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -723,6 +723,11 @@ class posixAccount extends baseModule { } + /** + * Returns a list of elements for the account profiles. + * + * @return profile elements + */ function get_profileOptions() { $return = array(); if ($_SESSION[$this->base]->type=='user') { diff --git a/lam/lib/modules/quota.inc b/lam/lib/modules/quota.inc index 73ef4cfe..3d12449b 100644 --- a/lam/lib/modules/quota.inc +++ b/lam/lib/modules/quota.inc @@ -308,6 +308,11 @@ class quota extends baseModule { return 0; } + /** + * Returns a list of elements for the account profiles. + * + * @return profile elements + */ function get_profileOptions() { // Get quotas $quotas = $_SESSION[$this->base]->lamdaemon(array("+ quota get " . $this->get_scope())); @@ -345,9 +350,12 @@ class quota extends baseModule { return $return; } - // checks if the values of a new or modified profile are valid - // $scope: the account type (user, group, host, ...) - // $options: a hash array (name => value) containing the options + /** + * Checks input values of account profiles. + * + * @param array $options a hash array (name => value) containing the options + * @return array list of error messages (array(type, title, text)) to generate StatusMessages, if any + */ function check_profileOptions($options) { $return = array(); $i = 0;