_Group::assign_to_semester

5.x _Group.php _Group::assign_to_semester($semester_num)
4.x _Group.php _Group::assign_to_semester($semester_num)

File

classes/_Group.php, line 75

Class

_Group

Code

function assign_to_semester($semester_num) {
  $this->assigned_to_semester_num = $semester_num;
  $temp_i = $this->list_courses->i;
  $this->list_courses->reset_counter();
  while ($this->list_courses->has_more()) {
    $c = $this->list_courses->get_next();
    $c->assigned_to_semester_num = $semester_num;
  }
  $this->list_courses->i = $temp_i;
}