version 1.193, 2011/10/03 13:27:17
|
version 1.194, 2013/03/01 04:58:08
|
Line 2291 sub CL_FULLNAME { return 6; }
|
Line 2291 sub CL_FULLNAME { return 6; }
|
sub CL_STATUS { return 7; } |
sub CL_STATUS { return 7; } |
sub CL_TYPE { return 8; } |
sub CL_TYPE { return 8; } |
sub CL_LOCKEDTYPE { return 9; } |
sub CL_LOCKEDTYPE { return 9; } |
sub CL_GROUP { return 10; } |
sub CL_CREDITS { return 10; } |
sub CL_PERMANENTEMAIL { return 11; } |
sub CL_GROUP { return 11; } |
sub CL_ROLE { return 12; } |
sub CL_PERMANENTEMAIL { return 12; } |
sub CL_EXTENT { return 13; } |
sub CL_ROLE { return 13; } |
sub CL_PHOTO { return 14; } |
sub CL_EXTENT { return 14; } |
sub CL_THUMBNAIL { return 15; } |
sub CL_PHOTO { return 15; } |
|
sub CL_THUMBNAIL { return 16; } |
|
|
sub get_classlist { |
sub get_classlist { |
my ($cdom,$cnum) = @_; |
my ($cdom,$cnum) = @_; |
Line 2316 sub get_classlist {
|
Line 2317 sub get_classlist {
|
} |
} |
my ($sname,$sdom) = split(/:/,$student); |
my ($sname,$sdom) = split(/:/,$student); |
my @Values = split(/:/,$info); |
my @Values = split(/:/,$info); |
my ($end,$start,$id,$section,$fullname,$type,$lockedtype); |
my ($end,$start,$id,$section,$fullname,$type,$lockedtype,$credits); |
if (@Values > 2) { |
if (@Values > 2) { |
($end,$start,$id,$section,$fullname,$type,$lockedtype) = @Values; |
($end,$start,$id,$section,$fullname,$type,$lockedtype,$credits) = @Values; |
} else { # We have to get the data ourselves |
} else { # We have to get the data ourselves |
($end,$start) = @Values; |
($end,$start) = @Values; |
$section = &Apache::lonnet::getsection($sdom,$sname,$cid); |
$section = &Apache::lonnet::getsection($sdom,$sname,$cid); |
Line 2357 sub get_classlist {
|
Line 2358 sub get_classlist {
|
$status='Future'; |
$status='Future'; |
} |
} |
$classlist{$student} = |
$classlist{$student} = |
[$sdom,$sname,$end,$start,$id,$section,$fullname,$status,$type,$lockedtype]; |
[$sdom,$sname,$end,$start,$id,$section,$fullname,$status,$type, |
|
$lockedtype,$credits]; |
} |
} |
if (wantarray()) { |
if (wantarray()) { |
return (\%classlist,['domain','username','end','start','id', |
return (\%classlist,['domain','username','end','start','id', |
'section','fullname','status','type','lockedtype']); |
'section','fullname','status','type', |
|
'lockedtype','credits']); |
} else { |
} else { |
return \%classlist; |
return \%classlist; |
} |
} |
Line 3091 $env{'course.'.$cid.'.domain'}, and $env
|
Line 3094 $env{'course.'.$cid.'.domain'}, and $env
|
|
|
Returns a reference to a hash which contains: |
Returns a reference to a hash which contains: |
keys '$sname:$sdom' |
keys '$sname:$sdom' |
values [$sdom,$sname,$end,$start,$id,$section,$fullname,$status,$type,$lockedtype] |
values [$sdom,$sname,$end,$start,$id,$section,$fullname,$status,$type, |
|
$lockedtype,$credits] |
|
|
The constant values CL_SDOM, CL_SNAME, CL_END, etc. can be used |
The constant values CL_SDOM, CL_SNAME, CL_END, etc. can be used |
as indices into the returned list to future-proof clients against |
as indices into the returned list to future-proof clients against |