[system] / branches / rel-2-3-dev / webwork-modperl / lib / WeBWorK / DB.pm Repository:
ViewVC logotype

Diff of /branches/rel-2-3-dev/webwork-modperl/lib/WeBWorK/DB.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1587 Revision 1589
993 croak "getUserSet: argument 1 must contain a user_id" 993 croak "getUserSet: argument 1 must contain a user_id"
994 unless defined $userID; 994 unless defined $userID;
995 croak "getUserSet: argument 2 must contain a set_id" 995 croak "getUserSet: argument 2 must contain a set_id"
996 unless defined $setID; 996 unless defined $setID;
997 997
998 return $self->{set_user}->get($userID, $setID); 998 #return $self->{set_user}->get($userID, $setID);
999 return ( $self->getUserSets([$userID, $setID]) )[0];
999} 1000}
1000 1001
1001=item getUserSets(@userSetIDs) 1002=item getUserSets(@userSetIDs)
1002 1003
1003Return a list of user set records associated with the user IDs given. If there 1004Return a list of user set records associated with the user IDs given. If there
1259 croak "getUserProblem: argument 2 must contain a set_id" 1260 croak "getUserProblem: argument 2 must contain a set_id"
1260 unless defined $setID; 1261 unless defined $setID;
1261 croak "getUserProblem: argument 3 must contain a problem_id" 1262 croak "getUserProblem: argument 3 must contain a problem_id"
1262 unless defined $problemID; 1263 unless defined $problemID;
1263 1264
1264 return $self->{problem_user}->get($userID, $setID, $problemID); 1265 #return $self->{problem_user}->get($userID, $setID, $problemID);
1266 return ( $self->getUserProblems([$userID, $setID, $problemID]) )[0];
1265} 1267}
1266 1268
1267=item getUserProblems(@userProblemIDs) 1269=item getUserProblems(@userProblemIDs)
1268 1270
1269Return a list of user set records associated with the user IDs given. If there 1271Return a list of user set records associated with the user IDs given. If there

Legend:
Removed from v.1587  
changed lines
  Added in v.1589

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9