function _AdvisingScreen::display_group_course_list

4.x _AdvisingScreen.php _AdvisingScreen::display_group_course_list($course_list, $group, $semester_num)
5.x _AdvisingScreen.php _AdvisingScreen::display_group_course_list($course_list, $group, $semester_num)

Displays all the courses in a CourseList object, using the draw_course_row function.

It looks like the group and semester_num are not being used anymore.

@todo Check on unused variables.

Parameters

CourseList $course_list:

unknown_type $group:

unknown_type $semester_num:

Return value

unknown

1 call to _AdvisingScreen::display_group_course_list()
_AdvisingScreen::display_group in classes/_AdvisingScreen.php
This function displays a Group object on the degree plan. This is not the selection popup display. It will either show the group as multi rows, filled in with courses, or as a "blank row" for the user to click on.

File

classes/_AdvisingScreen.php, line 3584

Class

_AdvisingScreen

Code

function display_group_course_list($course_list, $group, $semester_num) 
 {
  $pC = "";

  $course_list->reset_counter();
  while ($course_list->has_more()) 
   {
    $course = $course_list->get_next();

    // Tell the course what group we are coming from, so it displays correctly
    $course->disp_for_group_id = $group->group_id;

    $pC .= $this->draw_course_row($course, $course->icon_filename, $course->title_text, $course->temp_flag);

    // Doesn't matter if its a specified repeat or not.  Just
    // mark it as having been displayed.
    $course->set_has_been_displayed($group->req_by_degree_id);

  }
  return $pC;

}