summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4b0c3bb)
raw | patch | inline | side by side (parent: 4b0c3bb)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Sep 2010 11:48:07 +0000 (11:48 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 10 Sep 2010 11:48:07 +0000 (11:48 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19601 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 eb546abce07e8f405ef6e827fe6eb022be773659..1ff1160e4eb97b423ee43dd5d7e1acb2c87dd983 100644 (file)
function init()
{
// Detect feature availability and enable/disable services correspondingly.
- echo "init Plugin:";
$this->groupwareDao = new groupware_dao($this);
$features = array();
"dropOwnMails"=>0 );
$response = array_merge( $response, $compResponse);
- $this->groupwareDao->debug("Merged Comp Array:", $response);
+
$this->mapComprehensiveUserData($response);
$this->initially_was_account = $this->is_account = $status;
//required vacationEnabled
if($this->vacationEnabled){
if(tests::is_date($this->vacationStart)){
- msgPool::invalid(_("von"),$this->vacationStart , "", _("Example of date : 01.13.2010"));
+ $messages[] = msgPool::invalid(_("von"),$this->vacationStart , "", _("Example of date : 01.03.2010"));
}
if(tests::is_date($this->vacationStop)){
- msgPool::invalid(_("bis"),$this->vacationStop , "", _("Example of date : 01.13.2010"));
-
+ $messages[] = msgPool::invalid(_("bis"),$this->vacationStop , "", _("Example of date : 01.03.2010"));
}
$diff = tests::compareDate($this->vacationStart, $this->vacationStop);
$messages[] = msgPool::invalid(_("vacation dates"), $this->vacationStart." - ".$this->vacationStop, "", _("Enddate before Start or the same."));
}
}
+ if(!tests::is_email ($this->mailAddress)){
+ $messages[] = msgPool::invalid(_("Email"),$this->mailAddress , "", _("Example: user@excom.intranet.gonicus.de"));
+ }
return($messages);
}
-
/*! \brief Adapt from template, using 'dn'
*/
function adapt_from_template($dn, $skip= array())
$this->localDeliveryOnly = $callBackMap["localDeliveryOnly"];
$this->dropOwnMails = $callBackMap["dropOwnMails"];
- /*
- * TODO: Remove the line to check on every call..
- *
- * The check will be called on "OK" or "APPLY"
- */
- $this->check();
}
}
/*
* TODO: Remove the debug
*/
- private $debug = false;
+ private $debug = true;
/*
* TODO: fill the following vars on init.
*/
*/
public function init(){
-
$this->availableMethods = $this->groupwarePluginRef->rpcExec('gwGetCapabilities');
//$this->availableProperties = $this->groupwarePluginRef->rpcExec('gwGetSupportedProperties');
//$this->debug("availableProperties on init:", $this->availableProperties);
//$vacMessage = $this->get("vacationMessage", array($uid));
- $resultArr["vacationMessage"] = "dummy Vacation message";
+ $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
+ */
+ if($this->groupwarePluginRef->isFeatureEnabled("quotaSize")){
+
+ //$quotMessage = $this->get("quotaSize", array($uid));
+
+ $resultArr["quotaSize"] = 123456789;
}
else{
echo "vacationMessage not enabled.";