version 1.1, 2001/05/21 15:24:47
|
version 1.3, 2005/04/07 06:56:20
|
Line 75 foreach my $key (sort(keys(%history))) {
|
Line 75 foreach my $key (sort(keys(%history))) {
|
Calling convention: |
Calling convention: |
</h3> |
</h3> |
<pre> |
<pre> |
my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$uname,$home); |
my %record=&Apache::lonnet::restore($symb,$courseid,$domain,$uname); |
&Apache::lonnet::store(\%newrecord,$symb,$courseid,$domain,$uname,$home); |
&Apache::lonnet::store(\%newrecord,$symb,$courseid,$domain,$uname); |
</pre> |
</pre> |
<h4> |
<h4> |
Arguments (only %newrecord is required the rest are somewhat |
Arguments (only %newrecord is required the rest are somewhat |
Line 93 foreach my $key (sort(keys(%history))) {
|
Line 93 foreach my $key (sort(keys(%history))) {
|
</li> |
</li> |
<li> |
<li> |
<i>$courseid</i> - the internal name for a course, usually |
<i>$courseid</i> - the internal name for a course, usually |
found in <tt>$ENV{'request.course.id'}</tt> which is what will |
found in <tt>$env{'request.course.id'}</tt> which is what will |
be looked at if no value is passed to the functions. |
be looked at if no value is passed to the functions. |
</li> |
</li> |
<li> |
<li> |
<i>$domain</i> - the domain that the user belongs to, usually |
<i>$domain</i> - the domain that the user belongs to, usually |
found in <tt>$ENV{'user.domain'}</tt> which is what will be |
found in <tt>$env{'user.domain'}</tt> which is what will be |
looked at if no value is passed to the functions. |
looked at if no value is passed to the functions. |
</li> |
</li> |
<li> |
<li> |
<i>$uname</i> - the login name for the user, usually |
<i>$uname</i> - the login name for the user, usually |
found in <tt>$ENV{'user.name'}</tt> which is what will |
found in <tt>$env{'user.name'}</tt> which is what will |
be looked at if no value is passed to the functions. |
be looked at if no value is passed to the functions. |
</li> |
</li> |
<li> |
<li> |
<i>$home</i> - the homeserver for the user, usually found in |
|
<tt>$ENV{'user.home'}</tt> but can be easily gotten from a |
|
domain and name through |
|
<tt>&Apache::lonnet::homeserver($uname,$domain)</tt>. If no |
|
value is passed to store/restore the value in %ENV will be |
|
used. |
|
</li> |
|
<li> |
|
<i>\%newrecord</i> - the hash to store being passed by reference |
<i>\%newrecord</i> - the hash to store being passed by reference |
</li> |
</li> |
</ul> |
</ul> |
Line 132 foreach my $key (sort(keys(%history))) {
|
Line 124 foreach my $key (sort(keys(%history))) {
|
specific user / resource instance. |
specific user / resource instance. |
</li> |
</li> |
<li> |
<li> |
<i>no_such_host</i> - the <i>$home</i> specfied desn't exist |
<i>no_such_host</i> - the homeserver dosen't exist |
in the network. |
in the network. |
</li> |
</li> |
<li> |
<li> |
<i>con_delayed</i> - the <i>$home</i> was uncontactable at |
<i>con_delayed</i> - the homeserver was uncontactable at |
this time. The store will be delayed until it is again |
this time. The store will be delayed until it is again |
available. |
available. |
</li> |
</li> |
<li> |
<li> |
<i>con_failed</i> - the <i>$home</i> was uncontactable at this |
<i>con_failed</i> - the homeserver was uncontactable at this |
time and store was unable to delay the store until a later |
time and store was unable to delay the store until a later |
time. The store failed. |
time. The store failed. |
</li> |
</li> |
Line 157 foreach my $key (sort(keys(%history))) {
|
Line 149 foreach my $key (sort(keys(%history))) {
|
<address><a href="mailto:albertel@marvin.lite.msu.edu">Guy Albertelli</a></address> |
<address><a href="mailto:albertel@marvin.lite.msu.edu">Guy Albertelli</a></address> |
<!-- Created: Mon May 21 09:58:20 EDT 2001 --> |
<!-- Created: Mon May 21 09:58:20 EDT 2001 --> |
<!-- hhmts start --> |
<!-- hhmts start --> |
Last modified: Mon May 21 11:07:44 EDT 2001 |
Last modified: Wed May 30 10:52:16 EDT 2001 |
<!-- hhmts end --> |
<!-- hhmts end --> |
</body> |
</body> |
</html> |
</html> |