_CourseList::find_all_matches

5.x _CourseList.php _CourseList::find_all_matches(stdClass $course_c)
4.x _CourseList.php _CourseList::find_all_matches(Course $course_c)

Using the parent's function of find_all_matches, this will return a CourseList of all courses which match the Course object.

Parameters

Course $course_c:

Return value

CourseList

Overrides ObjList::find_all_matches

File

classes/_CourseList.php, line 193

Class

_CourseList

Code

function find_all_matches(Course $course_c) {
  if (!$list_matches = parent::find_all_matches($course_c)) {
    return false;
  }


  $list_matches = CourseList::cast($list_matches);
  return $list_matches;
}