--- loncom/interface/loncoursedata.pm 2002/08/28 21:50:27 1.22 +++ loncom/interface/loncoursedata.pm 2002/08/28 22:02:47 1.23 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # (Publication Handler # -# $Id: loncoursedata.pm,v 1.22 2002/08/28 21:50:27 stredwic Exp $ +# $Id: loncoursedata.pm,v 1.23 2002/08/28 22:02:47 stredwic Exp $ # # Copyright Michigan State University Board of Trustees # @@ -89,7 +89,7 @@ Input: $courseID, $lastDownloadTime, $c $courseID: The id of the course $lastDownloadTime: This is the date stamp for when this information was -last gathered. If it is set to 'Not downloaded', it will gather the data +last gathered. If it is set to Not downloaded, it will gather the data again, though it currently does not remove the old data. $c: The connection class that can determine if the browser has aborted. It @@ -103,7 +103,7 @@ Output: \%classlist -A list of student name:domain (as keys) (known below as $name) -A hash pointer for each student containing lastname, generation, firstname, -middlename, and PID : Key is $name.'studentInformation' +middlename, and PID : Key is $name.studentInformation -A hash pointer to each students section data : Key is $name.section @@ -125,7 +125,7 @@ sub DownloadClasslist { $Apache::lonnet::perlvar{'lonUsersDir'}); # Always download the information if lastDownloadTime is set to - # 'Not downloaded', otherwise it is only downloaded if the file + # Not downloaded, otherwise it is only downloaded if the file # has been updated and has a more recent date stamp if($lastDownloadTime ne 'Not downloaded' && $lastDownloadTime >= $modifiedTime && $modifiedTime >= 0) { @@ -195,14 +195,14 @@ $namedata: student name:domain $courseID: The id of the course $lastDownloadTime: This is the date stamp for when this information was -last gathered. If it is set to 'Not downloaded', it will gather the data +last gathered. If it is set to Not downloaded, it will gather the data again, though it currently does not remove the old data. $WhatIWant: Regular expression used to get selected data with dump Output: \%courseData -\%courseData: A hash pointer to the raw data from the student's course +\%courseData: A hash pointer to the raw data from the students course database. =back @@ -254,7 +254,7 @@ sub DownloadCourseInformation { These functions process all the data for all the students. Also, they are the functions that access the cache database for writing the majority of the time. The downloading and caching were separated to reduce problems -with stopping downloading then can't tie hash to database later. +with stopping downloading then can not tie hash to database later. =cut @@ -540,7 +540,7 @@ $cache: A hash pointer to store the data $classlist: The hash of data collected about a student from &DownloadClasslist(). The hash contains a list of students, a pointer -to a hash of student information for each student, and each student's section +to a hash of student information for each student, and each students section number. $courseID: The course ID @@ -661,7 +661,7 @@ Takes the course data downloaded for a s &DownloadCourseInformation() and breaks it up into key value pairs to be stored in the cached data. The keys are comprised of the $username:$domain:$keyFromCourseDatabase. The student username:domain is -stored away signifying that the student's information has been downloaded and +stored away signifying that the students information has been downloaded and can be reused from cached data. =over 4 @@ -1043,7 +1043,7 @@ $ChartDB: The name of the cache database Output: -1, 0, 1 --1: Couldn't tie database +-1: Could not tie database 0: Use cached data 1: New cache database created, use that.