_DegreePlan::get_semester

5.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 1047

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