| … | |
… | |
| 241 | Returns a new, empty password object. |
241 | Returns a new, empty password object. |
| 242 | |
242 | |
| 243 | =cut |
243 | =cut |
| 244 | |
244 | |
| 245 | sub newPassword { |
245 | sub newPassword { |
| 246 | my ($self) = @_; |
246 | my ($self, $prototype) = @_; |
| 247 | return $self->{password}->{record}->new; |
247 | return $self->{password}->{record}->new($prototype); |
| 248 | } |
248 | } |
| 249 | |
249 | |
| 250 | =item listPasswords() |
250 | =item listPasswords() |
| 251 | |
251 | |
| 252 | Returns a list of user IDs representing the records in the password table. |
252 | Returns a list of user IDs representing the records in the password table. |
| … | |
… | |
| 368 | Returns a new, empty permission level object. |
368 | Returns a new, empty permission level object. |
| 369 | |
369 | |
| 370 | =cut |
370 | =cut |
| 371 | |
371 | |
| 372 | sub newPermissionLevel { |
372 | sub newPermissionLevel { |
| 373 | my ($self) = @_; |
373 | my ($self, $prototype) = @_; |
| 374 | return $self->{permission}->{record}->new; |
374 | return $self->{permission}->{record}->new($prototype); |
| 375 | } |
375 | } |
| 376 | |
376 | |
| 377 | =item listPermissionLevels() |
377 | =item listPermissionLevels() |
| 378 | |
378 | |
| 379 | Returns a list of user IDs representing the records in the permission table. |
379 | Returns a list of user IDs representing the records in the permission table. |
| … | |
… | |
| 491 | Returns a new, empty key object. |
491 | Returns a new, empty key object. |
| 492 | |
492 | |
| 493 | =cut |
493 | =cut |
| 494 | |
494 | |
| 495 | sub newKey { |
495 | sub newKey { |
| 496 | my ($self) = @_; |
496 | my ($self, $prototype) = @_; |
| 497 | return $self->{key}->{record}->new; |
497 | return $self->{key}->{record}->new($prototype); |
| 498 | } |
498 | } |
| 499 | |
499 | |
| 500 | =item listKeys() |
500 | =item listKeys() |
| 501 | |
501 | |
| 502 | Returns a list of user IDs representing the records in the key table. |
502 | Returns a list of user IDs representing the records in the key table. |
| … | |
… | |
| 613 | Returns a new, empty user object. |
613 | Returns a new, empty user object. |
| 614 | |
614 | |
| 615 | =cut |
615 | =cut |
| 616 | |
616 | |
| 617 | sub newUser { |
617 | sub newUser { |
| 618 | my ($self) = @_; |
618 | my ($self, $prototype) = @_; |
| 619 | return $self->{user}->{record}->new; |
619 | return $self->{user}->{record}->new($prototype); |
| 620 | } |
620 | } |
| 621 | |
621 | |
| 622 | =item listUsers() |
622 | =item listUsers() |
| 623 | |
623 | |
| 624 | Returns a list of user IDs representing the records in the user table. |
624 | Returns a list of user IDs representing the records in the user table. |
| … | |
… | |
| 730 | ################################################################################ |
730 | ################################################################################ |
| 731 | # set functions |
731 | # set functions |
| 732 | ################################################################################ |
732 | ################################################################################ |
| 733 | |
733 | |
| 734 | sub newGlobalSet { |
734 | sub newGlobalSet { |
| 735 | my ($self) = @_; |
735 | my ($self, $prototype) = @_; |
| 736 | return $self->{set}->{record}->new; |
736 | return $self->{set}->{record}->new($prototype); |
| 737 | } |
737 | } |
| 738 | |
738 | |
| 739 | sub listGlobalSets($) { |
739 | sub listGlobalSets($) { |
| 740 | my ($self) = @_; |
740 | my ($self) = @_; |
| 741 | |
741 | |
| … | |
… | |
| 807 | ################################################################################ |
807 | ################################################################################ |
| 808 | # set_user functions |
808 | # set_user functions |
| 809 | ################################################################################ |
809 | ################################################################################ |
| 810 | |
810 | |
| 811 | sub newUserSet { |
811 | sub newUserSet { |
| 812 | my ($self) = @_; |
812 | my ($self, $prototype) = @_; |
| 813 | return $self->{set_user}->{record}->new; |
813 | return $self->{set_user}->{record}->new($prototype); |
| 814 | } |
814 | } |
| 815 | |
815 | |
| 816 | sub listSetUsers($$) { |
816 | sub listSetUsers($$) { |
| 817 | my ($self, $setID) = @_; |
817 | my ($self, $setID) = @_; |
| 818 | |
818 | |
| … | |
… | |
| 907 | ################################################################################ |
907 | ################################################################################ |
| 908 | # problem functions |
908 | # problem functions |
| 909 | ################################################################################ |
909 | ################################################################################ |
| 910 | |
910 | |
| 911 | sub newGlobalProblem { |
911 | sub newGlobalProblem { |
| 912 | my ($self) = @_; |
912 | my ($self, $prototype) = @_; |
| 913 | return $self->{problem}->{record}->new; |
913 | return $self->{problem}->{record}->new($prototype); |
| 914 | } |
914 | } |
| 915 | |
915 | |
| 916 | sub listGlobalProblems($$) { |
916 | sub listGlobalProblems($$) { |
| 917 | my ($self, $setID) = @_; |
917 | my ($self, $setID) = @_; |
| 918 | |
918 | |
| … | |
… | |
| 991 | ################################################################################ |
991 | ################################################################################ |
| 992 | # problem_user functions |
992 | # problem_user functions |
| 993 | ################################################################################ |
993 | ################################################################################ |
| 994 | |
994 | |
| 995 | sub newUserProblem { |
995 | sub newUserProblem { |
| 996 | my ($self) = @_; |
996 | my ($self, $prototype) = @_; |
| 997 | return $self->{problem_user}->{record}->new; |
997 | return $self->{problem_user}->{record}->new($prototype); |
| 998 | } |
998 | } |
| 999 | |
999 | |
| 1000 | sub listProblemUsers($$$) { |
1000 | sub listProblemUsers($$$) { |
| 1001 | my ($self, $setID, $problemID) = @_; |
1001 | my ($self, $setID, $problemID) = @_; |
| 1002 | |
1002 | |