--- doc/homework/storage.html 2001/05/21 15:24:47 1.1 +++ doc/homework/storage.html 2005/04/07 06:56:20 1.3 @@ -75,8 +75,8 @@ foreach my $key (sort(keys(%history))) { Calling convention:
-  my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$uname,$home);
-  &Apache::lonnet::store(\%newrecord,$symb,$courseid,$domain,$uname,$home);
+  my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$uname);
+  &Apache::lonnet::store(\%newrecord,$symb,$courseid,$domain,$uname);
     

Arguments (only %newrecord is required the rest are somewhat @@ -93,28 +93,20 @@ foreach my $key (sort(keys(%history))) {
  • $courseid - the internal name for a course, usually - found in $ENV{'request.course.id'} which is what will + found in $env{'request.course.id'} which is what will be looked at if no value is passed to the functions.
  • $domain - the domain that the user belongs to, usually - found in $ENV{'user.domain'} which is what will be + found in $env{'user.domain'} which is what will be looked at if no value is passed to the functions.
  • $uname - the login name for the user, usually - found in $ENV{'user.name'} which is what will + found in $env{'user.name'} which is what will be looked at if no value is passed to the functions.
  • - $home - the homeserver for the user, usually found in - $ENV{'user.home'} but can be easily gotten from a - domain and name through - &Apache::lonnet::homeserver($uname,$domain). If no - value is passed to store/restore the value in %ENV will be - used. -
  • -
  • \%newrecord - the hash to store being passed by reference
  • @@ -132,16 +124,16 @@ foreach my $key (sort(keys(%history))) { specific user / resource instance.
  • - no_such_host - the $home specfied desn't exist + no_such_host - the homeserver dosen't exist in the network.
  • - con_delayed - the $home was uncontactable at + con_delayed - the homeserver was uncontactable at this time. The store will be delayed until it is again available.
  • - con_failed - the $home was uncontactable at this + con_failed - the homeserver was uncontactable at this time and store was unable to delay the store until a later time. The store failed.
  • @@ -157,7 +149,7 @@ foreach my $key (sort(keys(%history))) {
    Guy Albertelli
    -Last modified: Mon May 21 11:07:44 EDT 2001 +Last modified: Wed May 30 10:52:16 EDT 2001