function _Course::get_has_been_displayed
Search API
5.x _Course.php | _Course::get_has_been_displayed($degree_id = 0) |
Returns TRUE or FALSE if this course has been displayed. Specify a degree_id to be more specific. Use -1 to mean "ANY" degree?
File
- classes/
_Course.php, line 459
Class
Code
function get_has_been_displayed($degree_id = 0) {
// If degree_id is zero, then use the course's currently req_by_degree_id.
if ($degree_id == 0) {
$degree_id = $this->req_by_degree_id;
}
if ($degree_id > 0) {
//return $this->bool_has_been_displayed_by_degree_array[$degree_id];
return $this->get_details_by_degree($degree_id, "bool_has_been_displayed");
}
else {
// has the course been displayed by ANY degree?
if ($this->get_count_details_by_degree("bool_has_been_displayed", TRUE) > 0) {
return TRUE;
}
}
return FALSE;
}