function _AdvisingScreen::build_semester_list

4.x _AdvisingScreen.php _AdvisingScreen::build_semester_list()
5.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 1673

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 == -88) 
     { // These are the "added by advisor" courses.  Skip them.
      continue;
    }


    $this->add_to_screen($this->display_semester($semester, true));

  }

}