function _CourseList::set_specified_repeats

4.x _CourseList.php _CourseList::set_specified_repeats(Course $course, $num)
5.x _CourseList.php _CourseList::set_specified_repeats(Course $course, $num)

Go through the list and set the specified_repeats value to $num for all instances of $course.

Parameters

Course $course:

int $num:

File

classes/_CourseList.php, line 2529

Class

_CourseList

Code

function set_specified_repeats(Course $course, $num) 
 {
  for ($t = 0; $t < $this->count; $t++) 
   {
    $course2 = $this->array_list [$t];
    if ($course2->course_id == $course->course_id) 
     {
      $course2->specified_repeats = $num;
      $course2->bool_specified_repeats = true;
    }

  }

}