X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttTeamHelper.class.php;h=1e6263131c00e9a1ceea25f74d519a14fa020400;hb=aeb30899d6ec142220d83b34fd8f6c68c05e8e90;hp=67d97b850c0bce3b980aae0c17aefa76041d96b8;hpb=75ff7ff29a038803d3b6e2c31b793049bbb2fbd4;p=timetracker.git diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 67d97b85..1e626313 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -176,24 +176,6 @@ class ttTeamHelper { return false; } - // getActiveProjects - returns an array of active projects for a group. - static function getActiveProjects($group_id) - { - $result = array(); - $mdb2 = getConnection(); - - $sql = "select id, name, description, tasks from tt_projects - where group_id = $group_id and status = 1 order by upper(name)"; - $res = $mdb2->query($sql); - $result = array(); - if (!is_a($res, 'PEAR_Error')) { - while ($val = $res->fetchRow()) { - $result[] = $val; - } - } - return $result; - } - // The getAllProjects obtains all projects in a group. static function getAllProjects($group_id, $all_fields = false) { $mdb2 = getConnection(); @@ -558,28 +540,6 @@ class ttTeamHelper { return false; } - // getPredefinedExpenses - obtains predefined expenses for a group. - static function getPredefinedExpenses($group_id) { - global $user; - $replaceDecimalMark = ('.' != $user->decimal_mark); - - $mdb2 = getConnection(); - - $result = array(); - $sql = "select id, name, cost from tt_predefined_expenses where group_id = $group_id"; - $res = $mdb2->query($sql); - $result = array(); - if (!is_a($res, 'PEAR_Error')) { - while ($val = $res->fetchRow()) { - if ($replaceDecimalMark) - $val['cost'] = str_replace('.', $user->decimal_mark, $val['cost']); - $result[] = $val; - } - return $result; - } - return false; - } - // getNotifications - obtains notification descriptions for a group. static function getNotifications($group_id) { $mdb2 = getConnection();