summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a00939f)
raw | patch | inline | side by side (parent: a00939f)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Oct 2010 09:50:05 +0000 (09:50 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 19 Oct 2010 09:50:05 +0000 (09:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20092 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_Groupware.inc | patch | blob | history | |
gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc
index 1fb44939b5eb1c2fde63fc092803bd334d4b8897..0f03abdb3484ceda2176a42c15f7a60dd7af164a 100644 (file)
'acctGetMailForwardAddresses','acctSetMailForwardAddresses'),
"vacationMessage" => array("_off",
'acctDelFilter','acctGetFilters','acctSetFilters','acctSetFilters'),
- "mailBoxWarnLimit" => array("_off",
+ "mailBoxWarnLimit" => array(
'acctSetQuota','acctGetQuota'),
- "mailBoxSendSizelimit" => array("_off",
+ "mailBoxSendSizelimit" => array(
'acctSetQuota','acctGetQuota'),
- "mailBoxHardSizelimit" => array("_off",
+ "mailBoxHardSizelimit" => array(
'acctSetQuota','acctGetQuota'),
- "mailBoxAutomaticRemoval" => array("_off",
+ "mailBoxAutomaticRemoval" => array(
'acctSetQuota','acctGetQuota'),
"localDeliveryOnly" => array( "_off",
'acctDelFilter','acctGetFilters','acctSetFilters','acctSetFilters'),
diff --git a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc
index 2772b6e9d2ef3a2c6385c424a4db9514f6028133..6194987fedb2c56d601aaeb0dd47e429b1bb8dea 100644 (file)
//Folder Id from the User ...
//user/$id/
- //$resultArr["mailFolder"] = $this->get("mailFolder", array("user/".$uid."/"));
+ $resultArr["mailFolder"] = $this->get("mailFolder", array("user/".$uid."/"));
//print_a($resultArr["mailFolder"]);
/*
"RIGHTS_NONE", 0);
"RIGHTS_WRITE", RIGHTS_APPEND | WRITE | CREATE | DELETE);
""
*/
+ /*
$resultArr["mailFolder"] = array(
'user/wiwu/Aufgaben' => array(
"name" =>"Aufgaben",
"name" => "wiwu",
"acl" => GROUPWARE_RIGHTS_ALL,
"type"=>"user"))),
- );
+ );
+ */
+
//need a status for the array - setting them now for the example data.
foreach($resultArr["mailFolder"] as $id => $folder){
// Usage is a Mapi function which is not yet
- // TODO: Remove the following dummy and enable the qota fetch from groupware
- $quota = $this->get("quotaSize", array($uid));
- $quota = array( "warn_limit" => 1008,
+ // example Array for Quota
+ /*
+ $quota = array( "warn_limit" => 1008,
"send_limit" => 108,
"hard_limit" => 1108,
"hold" => 508,
"usage" => 1108);
+ */
+ $quota = $this->get("quotaSize", array($uid));
+
$resultArr["quotaSize"] = $quota["usage"];
$resultArr["quotaSize"] = $quota["hold"];
if($quota["warn_limit"] > 0){