X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttTeamHelper.class.php;h=3fc06cc73b85e10d77ec7dc63e89b495d7ac7736;hb=aa8ffdcec75ded579362d1274e985b4b35a9ac95;hp=6aa7b917d1fbf8b277f8c132ef9c57a852cb5ea4;hpb=38dd91dcf8a9ecf6b7ceb73a9aabf787b96b6f6e;p=timetracker.git diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 6aa7b917..3fc06cc7 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -157,43 +157,6 @@ class ttTeamHelper { return false; } - // getInactiveTasks - returns an array of inactive tasks for a group. - static function getInactiveTasks($group_id) - { - $result = array(); - $mdb2 = getConnection(); - - $sql = "select id, name, description from tt_tasks - where group_id = $group_id and status = 0 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 getAllTasks obtains all tasks in a group. - static function getAllTasks($group_id, $all_fields = false) { - $mdb2 = getConnection(); - - if ($all_fields) - $sql = "select * from tt_tasks where group_id = $group_id order by status, upper(name)"; - else - $sql = "select id, name from tt_tasks where group_id = $group_id order by status, upper(name)"; - $res = $mdb2->query($sql); - $result = array(); - if (!is_a($res, 'PEAR_Error')) { - while ($val = $res->fetchRow()) { - $result[] = $val; - } - return $result; - } - return false; - } - // getActiveRolesForUser - returns an array of relevant active roles for user with rank less than self. // "Relevant" means that client roles are filtered out if Client plugin is disabled. static function getActiveRolesForUser()