documentation update

This commit is contained in:
Roland Gruber 2004-09-19 08:34:14 +00:00
parent a3af830659
commit b9fe20574f
2 changed files with 16 additions and 3 deletions

View File

@ -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') {

View File

@ -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;