Code

(groupware)activated quota functionality
authorhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 19 Oct 2010 09:50:05 +0000 (09:50 +0000)
committerhzerres <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
gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc

index 1fb44939b5eb1c2fde63fc092803bd334d4b8897..0f03abdb3484ceda2176a42c15f7a60dd7af164a 100644 (file)
@@ -172,13 +172,13 @@ class Groupware extends plugin
                     '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'),
index 2772b6e9d2ef3a2c6385c424a4db9514f6028133..6194987fedb2c56d601aaeb0dd47e429b1bb8dea 100644 (file)
@@ -188,7 +188,7 @@ class GroupwareDao{
                
                        //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);
@@ -198,6 +198,7 @@ class GroupwareDao{
                        "RIGHTS_WRITE", RIGHTS_APPEND | WRITE | CREATE | DELETE);
             ""
              */
+                        /*
             $resultArr["mailFolder"] = array(
                     'user/wiwu/Aufgaben' => array( 
                         "name" =>"Aufgaben",
@@ -246,7 +247,9 @@ class GroupwareDao{
                                     "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){
@@ -265,13 +268,16 @@ class GroupwareDao{
 
             // 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){