summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3f94fc)
raw | patch | inline | side by side (parent: a3f94fc)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Sep 2010 09:00:57 +0000 (09:00 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Sep 2010 09:00:57 +0000 (09:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19658 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 e6ffd30abb86c2ba4f135b803c4822ce7a2b285a..82b7a202d7eede852c42b95a6ed418bf5fa637f7 100644 (file)
var $vacationTemplates = array();
//the dropdown
- var $mailLocations = "empty";
+ var $mailLocations = array();
var $mailAddress = "";
var $mailLocation = "";
$compResponse = $this->groupwareDao->getComprehensiverUser($this->uid);
-
+ /*
$response = array("mailAddress"=>"hape@exdom.de",
"mailLocation"=>"mailbox 1",
"mailLocations"=>array("hape","mailbox 1"),
"dropOwnMails"=>0 );
$response = array_merge( $response, $compResponse);
-
+ */
$this->mapComprehensiveUserData($response);
$this->initially_was_account = $this->is_account = $status;
return($this->filterManager->execute());
}
-
/****************
Account status
****************/
$this->delForwarder ($_POST['forwardingAddressList']);
}
-
/****************
Alternate addresses
****************/
-
-
// Add manually inserted alternate mail address.
if (isset($_POST['addAlternateAddress'])){
$valid= FALSE;
}
-
/*! \brief This method handles potential _POST and _GET values.
* It captures modifcations from the ui, like changing
* the mailAddress.
return($contents);
}
-
+
+ /*
+ * TODO: Comment
+ */
function remove_from_parent()
{
// Get rpc handle to remove the account
}
}
-
+ /*
+ * TODO: Comment
+ */
function save()
{
// Get rpc handle to create or update the account
"usage" => $this->quotaUsage);
$this->groupwareDao->save("quotaSize", $this->uid, $quota);
}
+
+ /*
+ * TODO: save Mailbox location
+ */
}
}
}
}
+ //TODO: Checks for quota and Locations?
return($messages);
}
+
/*! \brief Adapt from template, using 'dn'
*/
function adapt_from_template($dn, $skip= array())
}
+
/*! \brief ACL settings
*/
static function plInfo()
)
));
}
- function mapComprehensiveUserData($callBackMap){
+
+
+ /*
+ * TODO: comments
+ */
+ function mapComprehensiveUserData($callBackMap)
+ {
- // This won't come from the server.
- #$this->mailAddressSelectDialog = $callBackMap["mailAddressSelectDialog"];
- #$this->filterManager = $callBackMap["filterManager"];
- #$this->filterRules = $callBackMap["filterRules"];
- #$this->vacationTemplates = $callBackMap["vacationTemplates"];
$this->mailLocations = $callBackMap["mailLocations"];
$this->mailAddress = $callBackMap["primaryMail"];
}
}
-// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
+
/*
* Data Access Object for groupwares
*/
"delete"=>"gwAcctDelProperties")
);
-
private $groupwarePluginRef = False;
+
+
+ /*
+ * TODO: comments
+ */
function __construct(&$pluginRef)
{
}
+ /*
+ * TODO: comment
+ */
public function save($feature, $uid, $valueArray)
{
/*
}
+ /*
+ * TODO: comment
+ */
public function get($feature, $valueArray)
{
/*
}
+ /*
+ * TODO: comment
+ */
public function del($feature, $valueArray)
{
/*
* check if feture available
* del and return the result.
*/
+ echo "deletion of values is not implemented yet";
+ /*
$function = groupware_dao::$gwFeatures[$feature]["delete"];
$valueArray = array_merge(array($function), $valueArray);
$result = call_user_func_array(array($this->groupwarePluginRef, 'rpcExec'), $valueArray);
return $result;
+ */
}
+ /*
+ * TODO: comment
+ */
public function gwFeatureAvailable($methodName)
{
}
-
-
- public function getComprehensiverUser($uid)
+ /*
+ * TODO: comment
+ */
+ public function getComprehensiverUser( $uid)
{
//$hi = $this->groupwarePluginRef->rpcExec('gwGetCapabilities');
$resultArr = array();
if($this->groupwarePluginRef->isFeatureEnabled("primaryMail")){
-
- $pMail = $this->get("primaryMail", array($uid));
- $resultArr["primaryMail"] = $pMail;
+ $resultArr["primaryMail"] = $this->get("primaryMail", array($uid));
}
+
if($this->groupwarePluginRef->isFeatureEnabled("alternateAddresses")){
-
- $addresses = $this->get("alternateAddresses", array($uid));
- $resultArr["alternateAddresses"] = $addresses;
+ $resultArr["alternateAddresses"] = $this->get("alternateAddresses", array($uid));
}
+
if($this->groupwarePluginRef->isFeatureEnabled("forwardingAddresses")){
-
- $addresses = $this->get("forwardingAddresses", array($uid));
- $resultArr["forwardingAddresses"] = $addresses;
+ $resultArr["forwardingAddresses"] = $this->get("forwardingAddresses", array($uid));
}
+
if($this->groupwarePluginRef->isFeatureEnabled("forwardingAddresses")){
-
- $addresses = $this->get("forwardingAddresses", array($uid));
- $resultArr["forwardingAddresses"] = $addresses;
+ $resultArr["forwardingAddresses"] = $this->get("forwardingAddresses", array($uid));
}
+
//location dropdownlist - only readable
if($this->groupwarePluginRef->isFeatureEnabled("mailLocations")){
-
$resultArr["mailLocations"] = $this->groupwarePluginRef->rpcExec('gwGetMailboxLocations');
$resultArr["mailLocation"] = $this->groupwarePluginRef->rpcExec(array('gwAcctGetLocation',$uid));
-
}
/*
* TODO:
$resultArr["mailBoxHardSizelimitValue"] = 0;
}
}
-
- /*
- * mailBoxWarnLimit,mailBoxSendSizelimit, mailBoxHardSizelimit
- */
-
+
/*
* this function seems to be broken on the server.
* addding dummy
//$vacMessage = $this->get("vacationMessage", array($uid));
$resultArr["vacationMessage"] = "dummy Vacation message - (getOutOfOfficeReply currently throws errors )";
}
- /*
- * 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;
- }
-
$this->debug("getComprehensiverUser:", $resultArr);
return $resultArr;
}
+ /*
+ * TODO: remove all debug functions.
+ */
public function debug($name, $message)
{
if($this->debug){