function _CourseList::find_best_match

4.x _CourseList.php _CourseList::find_best_match(Course $course_c, $min_grade = "D", $bool_mark_repeats_exclude = false)
5.x _CourseList.php _CourseList::find_best_match(Course $course_c, $min_grade = "", $bool_mark_repeats_exclude = false, $degree_id = 0, $bool_skip_already_assigned_to_degree = TRUE, $bool_skip_subs = FALSE, $group_id = 0)

Find the "best" match for this course, based on what the university considers a best match. This largely has to do with repeats. If the student has more than one credit, what is the "best" match?

For example, at ULM we consider the best match to be the most recent that meets the minimum requirements. Other schools might simply take the best grade.

Parameters

Course $course_c:

string $min_grade:

bool $bool_mark_repeats_exclude:

Return value

Course

File

classes/_CourseList.php, line 1197

Class

_CourseList

Code

function find_best_match(Course $course_c, $min_grade = "D", $bool_mark_repeats_exclude = false) 
 {

  return $this->find_most_recent_match($course_c, $min_grade, $bool_mark_repeats_exclude);

}