function AdvisingScreen::build_semester_list

7.x AdvisingScreen.php AdvisingScreen::build_semester_list()
6.x AdvisingScreen.php AdvisingScreen::build_semester_list()

Constructs the HTML to display the list of semesters for the student.

1 call to AdvisingScreen::build_semester_list()
AdvisingScreen::build_screen_elements in classes/AdvisingScreen.php
This function calls the other "build" functions to assemble the View or What If tabs in FlightPath.

File

classes/AdvisingScreen.php, line 2355

Class

AdvisingScreen

Code

function build_semester_list() {


  $list_semesters = $this->degree_plan->list_semesters;
  // Go through each semester and add it to the screen...
  $list_semesters->reset_counter();

  while ($list_semesters->has_more()) 
   {
    $semester = $list_semesters->get_next();
    $semester->reset_list_counters();
    if ($semester->semester_num == DegreePlan::SEMESTER_NUM_FOR_COURSES_ADDED) 
     { // These are the "added by advisor" courses.  Skip them.
      continue;
    }

    $semester->req_by_degree_id = $this->degree_plan->degree_id;

    $disp_sem = $this->display_semester($semester, TRUE);
    if ($disp_sem) {
      $this->add_to_screen($disp_sem, "SEMESTER_" . $semester->semester_num);
    }

  }


}