// The getAllUsers obtains all users in a given team.
static function getAllUsers($team_id, $all_fields = false) {
$mdb2 = getConnection();
-
if ($all_fields)
$sql = "select * from tt_users where team_id = $team_id order by upper(name)";
else
return $result;
}
- // getAllRoles - obtains all roles defined for team.
- static function getAllRoles($team_id) {
- $mdb2 = getConnection();
-
- $result = array();
- $sql = "select * from tt_roles where team_id = $team_id";
- $res = $mdb2->query($sql);
- $result = array();
- if (!is_a($res, 'PEAR_Error')) {
- while ($val = $res->fetchRow()) {
- $result[] = $val;
- }
- return $result;
- }
- return false;
- }
-
// The getActiveClients returns an array of active clients for team.
static function getActiveClients($team_id, $all_fields = false)
{