version 1.20, 2009/02/05 12:32:26
|
version 1.28, 2012/04/25 21:22:02
|
Line 1
|
Line 1
|
# The LearningOnline Network with CAPA |
# The LearningOnline Network with CAPA |
# accessor routines used to provide information about course groups |
# accessor routines used to provide information about course groups |
# |
# |
|
# $Id$ |
|
# |
# Copyright Michigan State University Board of Trustees |
# Copyright Michigan State University Board of Trustees |
# |
# |
# This file is part of the LearningOnline Network with CAPA (LON-CAPA). |
# This file is part of the LearningOnline Network with CAPA (LON-CAPA). |
Line 29 package Apache::longroup;
|
Line 31 package Apache::longroup;
|
use strict; |
use strict; |
use Apache::lonnet; |
use Apache::lonnet; |
use Apache::lonlocal; |
use Apache::lonlocal; |
|
use LONCAPA; |
|
|
############################################### |
############################################### |
=pod |
=pod |
Line 465 sub get_tool_privs {
|
Line 468 sub get_tool_privs {
|
vgb => 'View boards', |
vgb => 'View boards', |
}, |
}, |
chat => { |
chat => { |
pgc => 'Chat', |
pgc => 'Chat Room', |
}, |
}, |
files => { |
files => { |
rgf => 'Retrieve', |
rgf => 'Retrieve', |
Line 684 sub get_group_bbinfo {
|
Line 687 sub get_group_bbinfo {
|
} |
} |
|
|
############################################### |
############################################### |
|
|
|
sub get_group_link { |
|
my ($cdom,$cnum,$group,$navmap) = @_; |
|
if (ref($navmap)) { |
|
my $symb = 'uploaded/'.$cdom.'/'.$cnum.'/group_folder_'.$group.'.sequence___1___adm/'.$cdom.'/'.$cnum.'/'.$group.'/smppg'; |
|
my $res = $navmap->getBySymb($symb); |
|
my $link; |
|
if (ref($res)) { |
|
$link = $res->link(); |
|
$link .= (($link=~/\?/)?'&':'?').'symb='.$res->shown_symb(); |
|
} else { |
|
$link = '/adm/'.$cdom.'/'.$cnum.'/'.$group.'/smppg'; |
|
} |
|
return $link; |
|
} |
|
return; |
|
} |
|
|
|
############################################### |
|
|
1; |
1; |
|
|