version 1.373, 2006/05/17 23:13:47
|
version 1.374, 2006/05/17 23:25:56
|
Line 3760 sub check_user_status {
|
Line 3760 sub check_user_status {
|
|
|
Determines all the sections for a course including |
Determines all the sections for a course including |
sections with students and sections containing other roles. |
sections with students and sections containing other roles. |
Incoming parameters: domain, course number, reference to |
Incoming parameters: domain, course number, |
section hash (keys to be section/group IDs), reference to |
reference to array containing roles for which sections should |
array containing roles for which sections should be gathered |
be gathered (optional). If the third argument is undefined, |
(optional). If the fourth argument is undefined, sections |
sections are gathered for any role. |
are gathered for any role. |
|
|
|
Returns number of sections. |
Returns section hash (keys are section IDs, values are |
|
number of users in each section), subject to the |
|
optional roles filter. |
|
|
=cut |
=cut |
|
|
Line 3822 sub get_sections {
|
Line 3823 sub get_sections {
|
Retrieve information about groups in a course, |
Retrieve information about groups in a course, |
|
|
Input: |
Input: |
1. Reference to hash to populate with group information. |
1. Optional course domain |
2. Optional course domain |
2. Optional course number |
3. Optional course number |
3. Optional group name |
4. Optional group name |
|
|
|
Course domain and number will be taken from user's |
Course domain and number will be taken from user's |
environment if not supplied. Optional group name will' |
environment if not supplied. Optional group name will' |
Line 3833 be passed to lonnet::get_coursegroups()
|
Line 3833 be passed to lonnet::get_coursegroups()
|
use in the call to the dump function. |
use in the call to the dump function. |
|
|
Output |
Output |
Returns number of groups in the course (subject to the |
Returns hash of groups in the course (subject to the |
optional group name filter). |
optional group name filter). In the hash, the keys are |
|
group names, and their corresponding values |
Side effects: |
|
Populates the referenced curr_groups hash, with key, |
|
value pairs. Keys are group names, corresponding values |
|
are scalars containing group information in XML. This |
are scalars containing group information in XML. This |
can be sent to &get_group_settings() to be parsed. |
can be sent to &get_group_settings() to be parsed. |
|
|
|
Side effects: |
|
None. |
=cut |
=cut |
|
|
############################################### |
############################################### |