function DegreePlan::get_semester

7.x DegreePlan.php DegreePlan::get_semester($semester_num)
6.x DegreePlan.php DegreePlan::get_semester($semester_num)

Look through our list of semesters for the one with this semester_num, and return it, or return FALSE

File

classes/DegreePlan.php, line 1062

Class

DegreePlan

Code

function get_semester($semester_num) {
  $this->list_semesters->reset_counter();
  while ($this->list_semesters->has_more()) {
    $sem = $this->list_semesters->get_next();
    if ($sem->semester_num == $semester_num) {
      return $sem;
    }
  }

  return FALSE;
}