Code

removed the debugs form the dao class - did TODOs
authorhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Sep 2010 12:33:20 +0000 (12:33 +0000)
committerhzerres <hzerres@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 16 Sep 2010 12:33:20 +0000 (12:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19710 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/class_Groupware.inc
gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc

index 4213744dd116cbe986d03234fbd4e173fbb60c12..25157ba5a4ff4977058f3c39bc205b40d28a97d3 100644 (file)
@@ -104,7 +104,7 @@ class Groupware extends plugin
     {
         $params = func_get_args();
         unset($params[0]);
-        echo "------<br>Calling function:".$function." Params".var_dump($params)."<br>";
+        //echo "------<br>Calling function:".$function." Params".var_dump($params)."<br>";
 
         $rpc = $this->config->getRpcHandle();
 
index adade44ab5ce72240b13cbe34c0f686951096409..f1c5f7f644ac6bc8e4bdd0f138f481c857fe68d1 100644 (file)
@@ -4,13 +4,6 @@
  */\r
 class GroupwareDao{\r
 \r
-    /* TODO: Remove the debug \r
-     * use the debug functions fo the Gosa installation instead.\r
-     * function_debug\r
-     * (got ot remove the following variable, the function debug and all calls to it)\r
-     */\r
-    private $debug = true;\r
-\r
     private $availableMethods;\r
     private $availableProperties;\r
     private $accountLocations;\r
@@ -97,7 +90,7 @@ class GroupwareDao{
         }else{\r
             $valueArray = array($function, $uid, $valueArray);\r
         }\r
-        $this->debug("SAVING (feature, value)", $valueArray);\r
+        \r
         $result =  call_user_func_array(array($this->groupwarePluginRef, 'rpcExec'), $valueArray);\r
         return $result;\r
     }\r
@@ -236,27 +229,8 @@ class GroupwareDao{
 \r
             $vacMessage = $this->get("vacationMessage", array($uid));\r
             //$resultArr["vacationMessage"] = "dummy Vacation message - (getOutOfOfficeReply currently throws errors )";\r
-        }\r
-\r
-        $this->debug("getComprehensiverUser:", $resultArr);\r
+        }   \r
         return $resultArr;\r
     }\r
-\r
-\r
-    /*! \brief     TODO: remove all debug functions. Remove them also in the class_Groupware.inc\r
-     */\r
-    public function debug($name, $message)\r
-    {\r
-        if($this->debug){\r
-            echo"<b>".$name."</b>";\r
-            if(is_array($message)){\r
-                echo "<pre>";\r
-                print_r($message);\r
-                echo "</pre>";\r
-            }else{\r
-                echo "$message";\r
-            }\r
-        }\r
-    }\r
 } \r
 ?>
\ No newline at end of file