version 1.1007, 2009/07/25 15:25:18
|
version 1.1008, 2009/07/31 02:20:17
|
Line 2968 sub courseidput {
|
Line 2968 sub courseidput {
|
sub courseiddump { |
sub courseiddump { |
my ($domfilter,$descfilter,$sincefilter,$instcodefilter,$ownerfilter, |
my ($domfilter,$descfilter,$sincefilter,$instcodefilter,$ownerfilter, |
$coursefilter,$hostidflag,$hostidref,$typefilter,$regexp_ok, |
$coursefilter,$hostidflag,$hostidref,$typefilter,$regexp_ok, |
$selfenrollonly,$catfilter,$showhidden,$caller)=@_; |
$selfenrollonly,$catfilter,$showhidden,$caller,$cloner,$cc_clone,$cloneonly)=@_; |
my $as_hash = 1; |
my $as_hash = 1; |
my %returnhash; |
my %returnhash; |
if (!$domfilter) { $domfilter=''; } |
if (!$domfilter) { $domfilter=''; } |
Line 2987 sub courseiddump {
|
Line 2987 sub courseiddump {
|
':'.&escape($coursefilter).':'.&escape($typefilter). |
':'.&escape($coursefilter).':'.&escape($typefilter). |
':'.&escape($regexp_ok).':'.$as_hash.':'. |
':'.&escape($regexp_ok).':'.$as_hash.':'. |
&escape($selfenrollonly).':'.&escape($catfilter).':'. |
&escape($selfenrollonly).':'.&escape($catfilter).':'. |
$showhidden.':'.$caller,$tryserver); |
$showhidden.':'.$caller.':'.&escape($cloner).':'. |
|
&escape($cc_clone).':'.$cloneonly,$tryserver); |
my @pairs=split(/\&/,$rep); |
my @pairs=split(/\&/,$rep); |
foreach my $item (@pairs) { |
foreach my $item (@pairs) { |
my ($key,$value)=split(/\=/,$item,2); |
my ($key,$value)=split(/\=/,$item,2); |
Line 3002 sub courseiddump {
|
Line 3003 sub courseiddump {
|
for (my $i=0; $i<@responses; $i++) { |
for (my $i=0; $i<@responses; $i++) { |
$returnhash{$key}{$items[$i]} = &unescape($responses[$i]); |
$returnhash{$key}{$items[$i]} = &unescape($responses[$i]); |
} |
} |
} |
} |
} |
} |
} |
} |
} |
} |
Line 5934 sub plaintext {
|
Line 5935 sub plaintext {
|
} |
} |
} |
} |
my %rolenames = ( |
my %rolenames = ( |
Course => 'std', |
Course => 'std', |
Group => 'alt1', |
Community => 'alt1', |
); |
); |
if (defined($type) && |
if (defined($type) && |
defined($rolenames{$type}) && |
defined($rolenames{$type}) && |
Line 9694 and course level
|
Line 9695 and course level
|
|
|
plaintext($short,$type,$cid,$forcedefault) : return value in %prp hash |
plaintext($short,$type,$cid,$forcedefault) : return value in %prp hash |
(rolesplain.tab); plain text explanation of a user role term. |
(rolesplain.tab); plain text explanation of a user role term. |
$type is Course (default) or Group. |
$type is Course (default) or Community. |
If $forcedefault evaluates to true, text returned will be default |
If $forcedefault evaluates to true, text returned will be default |
text for $type. Otherwise, if this is a course, the text returned |
text for $type. Otherwise, if this is a course, the text returned |
will be a custom name for the role (if defined in the course's |
will be a custom name for the role (if defined in the course's |