documentation update
This commit is contained in:
parent
a3af830659
commit
b9fe20574f
|
@ -723,6 +723,11 @@ class posixAccount extends baseModule {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a list of elements for the account profiles.
|
||||||
|
*
|
||||||
|
* @return profile elements
|
||||||
|
*/
|
||||||
function get_profileOptions() {
|
function get_profileOptions() {
|
||||||
$return = array();
|
$return = array();
|
||||||
if ($_SESSION[$this->base]->type=='user') {
|
if ($_SESSION[$this->base]->type=='user') {
|
||||||
|
|
|
@ -308,6 +308,11 @@ class quota extends baseModule {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a list of elements for the account profiles.
|
||||||
|
*
|
||||||
|
* @return profile elements
|
||||||
|
*/
|
||||||
function get_profileOptions() {
|
function get_profileOptions() {
|
||||||
// Get quotas
|
// Get quotas
|
||||||
$quotas = $_SESSION[$this->base]->lamdaemon(array("+ quota get " . $this->get_scope()));
|
$quotas = $_SESSION[$this->base]->lamdaemon(array("+ quota get " . $this->get_scope()));
|
||||||
|
@ -345,9 +350,12 @@ class quota extends baseModule {
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// checks if the values of a new or modified profile are valid
|
/**
|
||||||
// $scope: the account type (user, group, host, ...)
|
* Checks input values of account profiles.
|
||||||
// $options: a hash array (name => value) containing the options
|
*
|
||||||
|
* @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) {
|
function check_profileOptions($options) {
|
||||||
$return = array();
|
$return = array();
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
Loading…
Reference in New Issue