[system] Repository:
ViewVC logotype

Revision 1236

Jump to revision: Previous Next
Author: sh002i
Date: Fri Jun 20 17:04:03 2003 UTC (16 years, 5 months ago)
Log Message:
new{Password,PermissionLevel,Key,User,GlobalSet,UserSet,...} now pass an
optional prototype object to the record class's constructor. this allows
you to use these methods in place of global2user and user2global (which
you should):

	my $userSet = $db->getUserSet($userID, $setID);
	my $gloalSet = $db->newGlobalSet($userSet);

You can even do weird things like:

	my $gloalSet = $db->newGlobalSet($userProblem);

The WeBWorK::DB::Record class just copies the values of ANY matching
fields from the old object to the new object.

Changed paths:

Path Details
Directorytrunk/webwork-modperl/lib/WeBWorK/DB/Record.pm modified , text changed
Directorytrunk/webwork-modperl/lib/WeBWorK/DB.pm modified , text changed
Directorytrunk/webwork2/lib/WeBWorK/DB/Record.pm modified , text changed
Directorytrunk/webwork2/lib/WeBWorK/DB.pm modified , text changed

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9