function _Course::equals_placeholder
Search API
| 4.x _Course.php | _Course::equals_placeholder(Course $course_c) | 
        
| 5.x _Course.php | _Course::equals_placeholder(Course $course_c) | 
        
Basically, this is a comparator function that will return true if $this equals many of the attributes of $course_c. Useful for seeing if $this is an "instance of" a particular course, but not necessairily the course that the student took. Example: if you want to test if MATH 101 is part of a group. You wouldn't use ==, since all the attributes might not be the same.
Parameters
Course $course_c:
Return value
bool
File
- classes/
_Course.php, line 1966  
Class
Code
function equals_placeholder(Course $course_c) 
 {
  // First, see if the courses are identical.
  if ($this->equals($course_c)) 
   {
    return true;
  }
  // Okay, now we go through and test for particular attributes
  // to be equal.
  if ($this->subject_id == $course_c->subject_id
   && $this->course_num == $course_c->course_num
     && $this->institution == $course_c->institution) 
   {
    return true;
  }
  return false;
}
  