--- loncom/interface/longroup.pm 2006/05/18 20:19:50 1.3 +++ loncom/interface/longroup.pm 2006/06/22 14:19:18 1.4 @@ -23,9 +23,9 @@ # # http://www.lon-capa.org/ # - + package Apache::longroup; - + use strict; use Apache::lonnet; @@ -45,7 +45,7 @@ Course domain and number will be taken f environment if not supplied. Optional group name will be passed to lonnet::get_coursegroups() as a regexp to use in the call to the dump function. - + Output Returns hash of groups in the course (subject to the optional group name filter). In the hash, the keys are @@ -83,30 +83,30 @@ sub coursegroups { ############################################### =item get_group_settings - + Uses TokeParser to extract group information from the XML used to describe course groups. - + Input: Scalar containing XML - as retrieved from &coursegroups(). - + Output: Hash containing group information as key=values for (a), and hash of hashes for (b) - + Keys (in two categories): (a) groupname, creator, creation, modified, startdate,enddate. Corresponding values are name of the group, creator of the group (username:domain), UNIX time for date group was created, and settings were last modified, and default start and end access times for group members. - + (b) functions returned in hash of hashes. Outer hash key is functions. Inner hash keys are chat,discussion,email,files,homepage,roster. Corresponding values are either on or off, depending on whether this type of functionality is available for the group. - + =cut ############################################### @@ -155,7 +155,6 @@ sub get_group_settings { } elsif ($token->[1] eq 'role') { $role = ''; } - } } return %content; @@ -176,13 +175,13 @@ sub check_group_access { ############################################### =pod - + =item group_changes Add or drop group memberships in a course as a result of changes in a user's roles/sections. Called by &Apache::lonnet:assignrole() - + Input: 1. User's domain 2. User's username