summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 782b788)
raw | patch | inline | side by side (parent: 782b788)
author | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Sep 2010 09:20:57 +0000 (09:20 +0000) | ||
committer | hzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 14 Sep 2010 09:20:57 +0000 (09:20 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19659 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 82b7a202d7eede852c42b95a6ed418bf5fa637f7..5b5ac2338455b526cb42c55f05a381a42483b414 100644 (file)
/*
- * TODO: Comment
+ * remove the account form the groupware server completely.
*/
function remove_from_parent()
{
}
}
+
/*
- * TODO: Comment
+ * Persists the values of this plugin to the groupware server
+ * Save method ist called on "apply" and "ok" in the Gosa Frontend
+ * All other actions will update values in the form or
+ * cancel and therefore discard the changes so far.
*/
function save()
{
/*
- * TODO: comments
+ * maps the resultset fetched from the Dao to the class variables
+ * of the plugin.
*/
function mapComprehensiveUserData($callBackMap)
{
-
$this->mailLocations = $callBackMap["mailLocations"];
$this->mailAddress = $callBackMap["primaryMail"];
*/
class groupware_dao{
/*
- * TODO: Remove the debug
+ * TODO: Remove the debug
+ * use the debug functions fo the Gosa installation instead.
+ * function_debug
+ * (got ot remove the following variable, the function debug and all calls to it)
*/
private $debug = false;
- /*
- * TODO: fill the following vars on init.
- */
+
private $availableMethods;
private $availableProperties;
private $accountLocations;
/*
- * TODO: comments
+ * Constructor sets the connection to the rpc service
+ * initializes the class
*/
function __construct(&$pluginRef)
{
/*
- * TODO: comment
+ * generic saving method for all features defined in $gwFeatures
+ * which are the available features.
*/
public function save($feature, $uid, $valueArray)
{
- /*
- * TODO:
- * check if feature available
- * save and return the result.
- */
$function = groupware_dao::$gwFeatures[$feature]["save"];
if(is_array($valueArray)){
/*
- * TODO: comment
+ * generic get method for all features defined in $gwFeatures
+ * which are the available features.
*/
public function get($feature, $valueArray)
{
/*
- * TODO: comment
+ * generic delete function for all features defined in $gwFeatures
+ * which are the available features.
+ *
+ * NOT YET IMPLEMENTED
*/
public function del($feature, $valueArray)
{
/*
- * TODO: comment
+ * determine availability of features.
+ * @param methodName
+ * @return boolean
*/
public function gwFeatureAvailable($methodName)
{
-
+
return $this->availableMethods[$methodName];
}
/*
- * TODO: comment
+ * comprehensive user info will dessolve into one groupware call later
+ * right now it will get all data of the features that are available in the plugin.
+ * @param int $uid
+ * @return assoc array "feature" => "gwValue";
*/
public function getComprehensiverUser( $uid)
{