summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b295b8c)
raw | patch | inline | side by side (parent: b295b8c)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Sep 2010 07:37:58 +0000 (07:37 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Sep 2010 07:37:58 +0000 (07:37 +0000) |
getQuota is a dummy array,... mapi functions are not yet availabe. An echo will warn about that.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19656 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19656 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_groupware.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 86565c7ad17510aed64cad26316aeea3cc66220f..49930b5e8783b04b1b03aecb019bceb8d35db7f9 100644 (file)
$params = func_get_args();
unset($params[0]);
//echo "------<br>Calling function:".$function." Params".var_dump($params)."<br>";
- echo "------<br>Calling function:".$function."<br>";
$rpc = $this->config->getRpcHandle();
- echo get_class($rpc);
+
$res = call_user_func_array(array($rpc,$function),array_values($params));
$this->rpcError = !$rpc->success();
if($this->rpcError){
'acctSetQuota','acctGetQuota'),
"mailBoxHardSizelimit" => array(
'acctSetQuota','acctGetQuota'),
- "mailBoxAutomaticRemoval" => array(
+ "mailBoxAutomaticRemoval" => array("_off",
'acctSetQuota','acctGetQuota'),
"localDeliveryOnly" => array( "_off",
'acctDelFilter','acctGetFilters','acctSetFilters','acctSetFilters'),
$status = $this->rpcExec('gwAcctExists', $this->uid);
if($status !== NULL){
- var_dump($this->rpcExec('gwAcctGetLocation',$this->uid));
+
$compResponse = $this->groupwareDao->getComprehensiverUser($this->uid);
$response = array("mailAddress"=>"hape@exdom.de",
/*
* TODO: Remove the debug
*/
- private $debug = true;
+ private $debug = false;
/*
* TODO: fill the following vars on init.
*/
//location dropdownlist - only readable
if($this->groupwarePluginRef->isFeatureEnabled("mailLocations")){
- $addresses = $this->groupwarePluginRef->rpcExec('gwGetMailboxLocations');
- $resultArr["mailLocations"] = $addresses;
+ $resultArr["mailLocations"] = $this->groupwarePluginRef->rpcExec('gwGetMailboxLocations');
+ $resultArr["mailLocation"] = $this->rpcExec('gwAcctGetLocation',$this->uid);
+
}
/*
* TODO:
$this->groupwarePluginRef->isFeatureEnabled("mailBoxWarnLimit") ||
$this->groupwarePluginRef->isFeatureEnabled("mailBoxSendSizelimit") ||
$this->groupwarePluginRef->isFeatureEnabled("mailBoxHardSizelimit")){
-
- $quota = $this->get("quotaSize", array($uid));
- $this->debug("QUOTA...", $quota);
+ /*
+ * Usage is a Mapi function which is not yet
+ */
+ /*
+ * TODO:
+ * remove the following dummy and enable the qota fetch from groupware
+ */
+ echo "Quota function not yet implemented on server side!!";
+ //$quota = $this->get("quotaSize", array($uid));
+ $quota = array( "warn_limit" => 1008,
+ "send_limit" => 108,
+ "hard_limit" => 1108,
+ "hold" => 508,
+ "usage" => 1108);
+ $resultArr["quotaSize"] = $quota["usage"];
+ $resultArr["quotaSize"] = $quota["hold"];
+ if($quota["warn_limit"] > 0){
+ $resultArr["mailBoxWarnLimitEnabled"] = true;
+ $resultArr["mailBoxWarnLimitValue"] = $quota["warn_limit"];
+ }
+ else{
+ $resultArr["mailBoxWarnLimitEnabled"] = false;
+ $resultArr["mailBoxWarnLimitValue"] = 0;
+ }
+ if($quota["send_limit"] > 0){
+ $resultArr["mailBoxSendSizelimitEnabled"] = True;
+ $resultArr["mailBoxSendSizelimitValue"] = $quota["send_limit"];
+ }
+ else{
+ $resultArr["mailBoxSendSizelimitEnabled"] = FALSE;
+ $resultArr["mailBoxSendSizelimitValue"] = 0;
+ }
+ if($quota["hard_limit"] > 0){
+ $resultArr["mailBoxHardSizelimitEnabled"] = True;
+ $resultArr["mailBoxHardSizelimitValue"] = $quota["hard_limit"];
+ }
+ else{
+ $resultArr["mailBoxHardSizelimitEnabled"] = FALSE;
+ $resultArr["mailBoxHardSizelimitValue"] = 0;
+ }
}
/*
//$vacMessage = $this->get("vacationMessage", array($uid));
$resultArr["vacationMessage"] = "dummy Vacation message - (getOutOfOfficeReply currently throws errors )";
}
- else{
- echo "vacationMessage not enabled.";
- }
/*
* this function seems to be broken on the server.
* addding dummy
$resultArr["quotaSize"] = 123456789;
}
- else{
- echo "vacationMessage not enabled.";
- }
+
$this->debug("getComprehensiverUser:", $resultArr);
return $resultArr;