summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2b5a5a7)
raw | patch | inline | side by side (parent: 2b5a5a7)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 14:50:52 +0000 (14:50 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 14:50:52 +0000 (14:50 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19651 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 2f77f809724ea18266a254c54643a1589d9bfe03..9a2f840d898844ce432b75dc504fa70cba528638 100644 (file)
var $filterRules = array();
var $vacationTemplates = array();
+ //the dropdown
+ var $mailLocations = "empty";
+
var $mailAddress = "";
var $mailLocation = "";
var $quotaUsage = 0;
$features = array();
+ /*
+ * feature names with a list of groupware function that must be availabele
+ * these groupware functions are not the rpc functions, because they are asked from the groupware server
+ */
$featureReq = array(
"primaryMail" => array(
'acctGetPrimaryMailAddress'),
'acctGetQuota'),
"quotaSize" => array(
'acctSetQuota','acctGetQuota'),
+ "mailLocations" => array(
+ 'getMailboxLocations'),
"mailFilter" => array("_off",
'acctDelFilter','acctGetFilters','acctSetFilters','acctSetFilters'),
"alternateAddresses" => array(
$compResponse = $this->groupwareDao->getComprehensiverUser($this->uid);
$response = array("mailAddress"=>"hape@exdom.de",
- "mailLocation"=>"hape@exdom.de",
+ "mailLocation"=>"mailbox 1",
+ "mailLocations"=>array("hape","mailbox 1"),
"quotaUsage"=>10,
"quotaSize"=>100,
"alternateAddresses"=>"alternateAddresses@exdom.de",
$smarty = get_smarty();
foreach($this->attributes as $attr){
+
$smarty->assign($attr, $this->$attr);
}
$smarty->assign($feature."_isActive", $state);
}
- $smarty->assign("mailLocations", array("tester"));
+
+ $smarty->assign("mailLocations", $this->mailLocations);
if (count($this->vacationTemplates)){
$smarty->assign("displayTemplateSelector", "true");
$smarty->assign("vacationTemplate", set_post($this->vacationTemplate));
#$this->filterManager = $callBackMap["filterManager"];
#$this->filterRules = $callBackMap["filterRules"];
#$this->vacationTemplates = $callBackMap["vacationTemplates"];
+ $this->mailLocations = $callBackMap["mailLocations"];
$this->mailAddress = $callBackMap["primaryMail"];
$this->mailLocation = $callBackMap["mailLocation"];
private static $gwFeatures = array(
"primaryMail" => array( "get"=>"gwAcctGetPrimaryMailAddress",
"save"=>"gwAcctSetPrimaryMailAddress"),
+ "mailLocations" => array("get"=>"gwGetMailboxLocations"),
"quotaSize" =>array( "get"=>"gwAcctGetQuota",
"save"=>"gwAcctSetQuota",
"delete"=>"gwAcctSetQuota"),
$this->availableMethods = $this->groupwarePluginRef->rpcExec('gwGetCapabilities');
//$this->availableProperties = $this->groupwarePluginRef->rpcExec('gwGetSupportedProperties');
//$this->debug("availableProperties on init:", $this->availableProperties);
-
- $this->accountLocations = $this->groupwarePluginRef->rpcExec('gwGetMailboxLocations');
- $this->debug("gwGetMailboxLocations on INIT:", $this->accountLocations);
-
+
}
}
- public function getMailboxLocations()
- {
- echo "acctGetMailboxLocations";
- return $this->groupwarePluginRef->rpcExec("acctGetMailboxLocations");
- }
public function getComprehensiverUser($uid)
$addresses = $this->get("forwardingAddresses", array($uid));
$resultArr["forwardingAddresses"] = $addresses;
}
+ //location dropdownlist - only readable
+ if($this->groupwarePluginRef->isFeatureEnabled("mailLocations")){
+
+ $addresses = $this->groupwarePluginRef->rpcExec('gwGetMailboxLocations');
+ $resultArr["mailLocations"] = $addresses;
+ $this->debug("gwGetMailboxLocations", $addresses);
+ }
+
+
/*
* this function seems to be broken on the server.
* addding dummy