summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b5fcf6b)
raw | patch | inline | side by side (parent: b5fcf6b)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 14:04:18 +0000 (14:04 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 13 Sep 2010 14:04:18 +0000 (14:04 +0000) |
added as requirement a non existing function, which will switch off the feature featureAvailabe = false
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19647 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19647 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 54de827f4f80776a392a71fcc7de7fd8cc88909e..2f77f809724ea18266a254c54643a1589d9bfe03 100644 (file)
"mailBoxAutomaticRemovalEnabled",
"mailBoxAutomaticRemovalValue",
"localDeliveryOnly",
- "dropOwnMails",
- "mailFilter_isActive",
- "vacationMessage_isActive",
- "localDeliveryOnly_isActive",
- "dropOwnMails_isActive"
+ "dropOwnMails"
);
$this->groupwareDao = new groupware_dao($this);
$features = array();
+
$featureReq = array(
"primaryMail" => array(
'acctGetPrimaryMailAddress'),
'acctGetQuota'),
"quotaSize" => array(
'acctSetQuota','acctGetQuota'),
- "alternateAddresses" => array(
- 'acctDelAlternateMailAddress','acctSetAlternateMailAddresses',
- 'acctAddAlternateMailAddress','acctGetAlternateMailAddresses'),
- "forwardingAddresses" => array(
- 'acctAddMailForwardAddress','acctDelMailForwardAddress',
- 'acctGetMailForwardAddresses','acctSetMailForwardAddresses'),
- "mailBoxWarnLimit" => array(
- 'acctSetQuota','acctGetQuota'),
- "mailBoxSendSizelimit" => array(
- 'acctSetQuota','acctGetQuota'),
- "mailBoxHardSizelimit" => array(
- 'acctSetQuota','acctGetQuota'),
- "mailBoxAutomaticRemoval" => array(
- 'acctSetQuota','acctGetQuota'),
-
- );
-
- /*
- $featureReq = array(
- "primaryMail" => array(
- 'acctGetPrimaryMailAddress'),
- "quotaUsage" => array(
- 'acctGetQuota'),
- "quotaSize" => array(
- 'acctSetQuota','acctGetQuota'),
- "mailFilter" => array(
+ "mailFilter" => array("_off",
'acctDelFilter','acctGetFilters','acctSetFilters','acctSetFilters'),
"alternateAddresses" => array(
'acctDelAlternateMailAddress','acctSetAlternateMailAddresses',
"forwardingAddresses" => array(
'acctAddMailForwardAddress','acctDelMailForwardAddress',
'acctGetMailForwardAddresses','acctSetMailForwardAddresses'),
- "vacationMessage" => array(
+ "vacationMessage" => array("_off",
'acctDelFilter','acctGetFilters','acctSetFilters','acctSetFilters'),
"mailBoxWarnLimit" => array(
'acctSetQuota','acctGetQuota'),
'acctSetQuota','acctGetQuota'),
"mailBoxAutomaticRemoval" => array(
'acctSetQuota','acctGetQuota'),
- "localDeliveryOnly" => array(
+ "localDeliveryOnly" => array( "_off",
'acctDelFilter','acctGetFilters','acctSetFilters','acctSetFilters'),
- "dropOwnMails" => array(
+ "dropOwnMails" => array( "_off",
'acctDelFilter','acctGetFilters','acctSetFilters','acctSetFilters'));
- */
+
// Check if all required methods cann be called!
foreach($featureReq as $name => $requires){
$active = TRUE;
/*
* TODO: Remove the debug
*/
- private $debug = false;
+ private $debug = true;
/*
* TODO: fill the following vars on init.
*/
//$this->debug("availableProperties on init:", $this->availableProperties);
$this->accountLocations = $this->groupwarePluginRef->rpcExec('gwGetMailboxLocations');
- $this->debug("gwGetMailboxLocations on init:", $this->accountLocations);
+ $this->debug("gwGetMailboxLocations on INIT:", $this->accountLocations);
}
$addresses = $this->get("forwardingAddresses", array($uid));
$resultArr["forwardingAddresses"] = $addresses;
}
+ if($this->groupwarePluginRef->isFeatureEnabled("forwardingAddresses")){
+
+ $addresses = $this->get("forwardingAddresses", array($uid));
+ $resultArr["forwardingAddresses"] = $addresses;
+ }
/*
* this function seems to be broken on the server.
* addding dummy