function FlightPath::assign_courses_to_semesters

6.x FlightPath.php FlightPath::assign_courses_to_semesters()

File

classes/FlightPath.php, line 1094

Class

FlightPath

Code

function assign_courses_to_semesters() 
 {
  // This method will look at the student's courses
  // and decide if they should be assigned to degree requirements
  // which have been spelled out in each semester.  This
  // is not where it looks into groups.

  $this->degree_plan->list_semesters->reset_counter();
  while ($this->degree_plan->list_semesters->has_more()) 
   {
    $semester = $this->degree_plan->list_semesters->get_next();
    $semester_num = $semester->semester_num;

    // Okay, let's look at the courses (not groups) in this
    // semester...
    $this->assign_courses_to_list($semester->list_courses, $this->student, TRUE, null, FALSE, $semester_num);

  }


}