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