| @@ 973-990 (lines=18) @@ | ||
| 970 | * this function gets all the groups of the course, |
|
| 971 | * not including linked courses |
|
| 972 | */ |
|
| 973 | public static function get_course_groups() |
|
| 974 | { |
|
| 975 | $session_id = api_get_session_id(); |
|
| 976 | if ($session_id != 0) { |
|
| 977 | $new_group_list = CourseManager::get_group_list_of_course( |
|
| 978 | api_get_course_id(), |
|
| 979 | $session_id, |
|
| 980 | 1 |
|
| 981 | ); |
|
| 982 | } else { |
|
| 983 | $new_group_list = CourseManager::get_group_list_of_course( |
|
| 984 | api_get_course_id(), |
|
| 985 | 0, |
|
| 986 | 1 |
|
| 987 | ); |
|
| 988 | } |
|
| 989 | return $new_group_list; |
|
| 990 | } |
|
| 991 | ||
| 992 | /** |
|
| 993 | * This tools loads all the users and all the groups who have received |
|
| @@ 5768-5778 (lines=11) @@ | ||
| 5765 | * this function gets all the groups of the course, |
|
| 5766 | * not including linked courses |
|
| 5767 | */ |
|
| 5768 | public static function getCourseGroups() |
|
| 5769 | { |
|
| 5770 | $session_id = api_get_session_id(); |
|
| 5771 | if ($session_id != 0) { |
|
| 5772 | $new_group_list = self::get_group_list_of_course(api_get_course_id(), $session_id, 1); |
|
| 5773 | } else { |
|
| 5774 | $new_group_list = self::get_group_list_of_course(api_get_course_id(), 0, 1); |
|
| 5775 | } |
|
| 5776 | ||
| 5777 | return $new_group_list; |
|
| 5778 | } |
|
| 5779 | ||
| 5780 | /** |
|
| 5781 | * @param FormValidator $form |
|