function CourseList::set_specified_repeats

7.x CourseList.php CourseList::set_specified_repeats(Course $course, $num)
6.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 2561

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

  }

}