version 1.187, 2008/04/17 14:51:43
|
version 1.188, 2008/09/11 14:47:21
|
Line 930 sub populate_student_table {
|
Line 930 sub populate_student_table {
|
$dbh->do($request); |
$dbh->do($request); |
if ($dbh->err()) { |
if ($dbh->err()) { |
&Apache::lonnet::logthis("error ".$dbh->errstr(). |
&Apache::lonnet::logthis("error ".$dbh->errstr(). |
" occured executing \n". |
" occurred executing \n". |
$request); |
$request); |
} |
} |
return; |
return; |
Line 983 sub populate_groupnames_table {
|
Line 983 sub populate_groupnames_table {
|
$dbh->do($request); |
$dbh->do($request); |
if ($dbh->err()) { |
if ($dbh->err()) { |
&Apache::lonnet::logthis("error ".$dbh->errstr(). |
&Apache::lonnet::logthis("error ".$dbh->errstr(). |
" occured executing \n". |
" occurred executing \n". |
$request); |
$request); |
} |
} |
return; |
return; |
Line 1053 sub populate_students_groups_table {
|
Line 1053 sub populate_students_groups_table {
|
$dbh->do($request); |
$dbh->do($request); |
if ($dbh->err()) { |
if ($dbh->err()) { |
&Apache::lonnet::logthis("error ".$dbh->errstr(). |
&Apache::lonnet::logthis("error ".$dbh->errstr(). |
" occured executing \n". |
" occurred executing \n". |
$request); |
$request); |
} |
} |
return; |
return; |
Line 1112 Input: $sname, $sdom, $courseid
|
Line 1112 Input: $sname, $sdom, $courseid
|
|
|
Output: $returnstatus |
Output: $returnstatus |
|
|
$returnstatus is a string describing any errors that occured. 'okay' is the |
$returnstatus is a string describing any errors that occurred. 'okay' is the |
default. |
default. |
|
|
This subroutine loads a students data using lonnet::dump and inserts |
This subroutine loads a students data using lonnet::dump and inserts |
Line 1126 a description of the error.
|
Line 1126 a description of the error.
|
|
|
Once the "fulldump" tables are updated, the tables used for chart and |
Once the "fulldump" tables are updated, the tables used for chart and |
spreadsheet (which hold only the current state of the student on their |
spreadsheet (which hold only the current state of the student on their |
homework, not historical data) are updated. If all updates have occured |
homework, not historical data) are updated. If all updates have occurred |
successfully, $student_table is updated to reflect the time of the update. |
successfully, $student_table is updated to reflect the time of the update. |
|
|
Notice we do not insert the data and immediately query it. This means it |
Notice we do not insert the data and immediately query it. This means it |
Line 1398 Input: $sname, $sdom, $courseid
|
Line 1398 Input: $sname, $sdom, $courseid
|
|
|
Output: $returnstatus, \%student_data |
Output: $returnstatus, \%student_data |
|
|
$returnstatus is a string describing any errors that occured. 'okay' is the |
$returnstatus is a string describing any errors that occurred. 'okay' is the |
default. |
default. |
\%student_data is the data returned by a call to lonnet::currentdump. |
\%student_data is the data returned by a call to lonnet::currentdump. |
|
|
Line 2209 sub populate_weight_table {
|
Line 2209 sub populate_weight_table {
|
$dbh->do($request); |
$dbh->do($request); |
if ($dbh->err()) { |
if ($dbh->err()) { |
&Apache::lonnet::logthis("error ".$dbh->errstr(). |
&Apache::lonnet::logthis("error ".$dbh->errstr(). |
" occured executing \n". |
" occurred executing \n". |
$request); |
$request); |
} |
} |
return; |
return; |