X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/38b85fc251ea53e5d5842e25c8fc9b066a474a54..75ff7ff29a038803d3b6e2c31b793049bbb2fbd4:/WEB-INF/lib/ttTeamHelper.class.php diff --git a/WEB-INF/lib/ttTeamHelper.class.php b/WEB-INF/lib/ttTeamHelper.class.php index 44f3d7a0..67d97b85 100644 --- a/WEB-INF/lib/ttTeamHelper.class.php +++ b/WEB-INF/lib/ttTeamHelper.class.php @@ -194,24 +194,6 @@ class ttTeamHelper { return $result; } - // getInactiveProjects - returns an array of inactive projects for a group. - static function getInactiveProjects($group_id) - { - $result = array(); - $mdb2 = getConnection(); - - $sql = "select id, name, description, tasks from tt_projects - 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 getAllProjects obtains all projects in a group. static function getAllProjects($group_id, $all_fields = false) { $mdb2 = getConnection(); @@ -379,27 +361,6 @@ class ttTeamHelper { return $result; } - // The getActiveClients returns an array of active clients for a group. - static function getActiveClients($group_id, $all_fields = false) - { - $result = array(); - $mdb2 = getConnection(); - - if ($all_fields) - $sql = "select * from tt_clients where group_id = $group_id and status = 1 order by upper(name)"; - else - $sql = "select id, name from tt_clients 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 getAllClients obtains all clients in a group. static function getAllClients($group_id, $all_fields = false) { $mdb2 = getConnection();