From: hzerres Date: Thu, 16 Sep 2010 12:33:20 +0000 (+0000) Subject: removed the debugs form the dao class - did TODOs X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5a2a828c3c25de6bc1b819d72753b0ebf1b9a5a7;p=gosa.git removed the debugs form the dao class - did TODOs git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19710 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc index 4213744dd..25157ba5a 100644 --- a/gosa-plugins/groupware/personal/groupware/class_Groupware.inc +++ b/gosa-plugins/groupware/personal/groupware/class_Groupware.inc @@ -104,7 +104,7 @@ class Groupware extends plugin { $params = func_get_args(); unset($params[0]); - echo "------
Calling function:".$function." Params".var_dump($params)."
"; + //echo "------
Calling function:".$function." Params".var_dump($params)."
"; $rpc = $this->config->getRpcHandle(); diff --git a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc index adade44ab..f1c5f7f64 100644 --- a/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc +++ b/gosa-plugins/groupware/personal/groupware/class_GroupwareDao.inc @@ -4,13 +4,6 @@ */ class GroupwareDao{ - /* 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 = true; - private $availableMethods; private $availableProperties; private $accountLocations; @@ -97,7 +90,7 @@ class GroupwareDao{ }else{ $valueArray = array($function, $uid, $valueArray); } - $this->debug("SAVING (feature, value)", $valueArray); + $result = call_user_func_array(array($this->groupwarePluginRef, 'rpcExec'), $valueArray); return $result; } @@ -236,27 +229,8 @@ class GroupwareDao{ $vacMessage = $this->get("vacationMessage", array($uid)); //$resultArr["vacationMessage"] = "dummy Vacation message - (getOutOfOfficeReply currently throws errors )"; - } - - $this->debug("getComprehensiverUser:", $resultArr); + } return $resultArr; } - - - /*! \brief TODO: remove all debug functions. Remove them also in the class_Groupware.inc - */ - public function debug($name, $message) - { - if($this->debug){ - echo"".$name.""; - if(is_array($message)){ - echo "
";
-                print_r($message);
-                echo "
"; - }else{ - echo "$message"; - } - } - } } ?> \ No newline at end of file