function AdvisingScreen::display_group_course_list

7.x AdvisingScreen.php AdvisingScreen::display_group_course_list($course_list, $group, $semester_num)
6.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 3849

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, TRUE, TRUE, FALSE, $group);

    // 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;

}