Code

added quota call for the missing features... json error - will fix the tests first.
authorhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Sep 2010 06:51:15 +0000 (06:51 +0000)
committerhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 14 Sep 2010 06:51:15 +0000 (06:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19653 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_groupware.inc

index 9a2f840d898844ce432b75dc504fa70cba528638..86565c7ad17510aed64cad26316aeea3cc66220f 100644 (file)
@@ -1069,9 +1069,27 @@ class groupware_dao{
                        
                        $addresses = $this->groupwarePluginRef->rpcExec('gwGetMailboxLocations');
                        $resultArr["mailLocations"] = $addresses;
-                       $this->debug("gwGetMailboxLocations", $addresses);
                }
-       
+               /*
+                * TODO:
+                * getLocation muss ebenfalls geholt werden
+                */
+               
+               //Quota quotaUsage, quotaSize
+               if($this->groupwarePluginRef->isFeatureEnabled("quotaSize") || 
+                       $this->groupwarePluginRef->isFeatureEnabled("quotaUsage") || 
+                       $this->groupwarePluginRef->isFeatureEnabled("mailBoxWarnLimit") || 
+                       $this->groupwarePluginRef->isFeatureEnabled("mailBoxSendSizelimit") || 
+                       $this->groupwarePluginRef->isFeatureEnabled("mailBoxHardSizelimit")){
+                               
+                       $quota = $this->get("quotaSize", array($uid));
+                       
+                       $this->debug("QUOTA...", $quota);
+               }
+               
+               /*
+                * mailBoxWarnLimit,mailBoxSendSizelimit, mailBoxHardSizelimit
+                */
                
                /*
                 * this function seems to be broken on the server.