function _Course::get_has_been_assigned_to_degree_id

5.x _Course.php _Course::get_has_been_assigned_to_degree_id($degree_id = 0)

File

classes/_Course.php, line 2116

Class

_Course

Code

function get_has_been_assigned_to_degree_id($degree_id = 0) {

  if ($degree_id == 0) {
    $degree_id = $this->req_by_degree_id;
  }

  if (in_array($degree_id, $this->assigned_to_degree_ids_array)) {
    return TRUE;
  }

  return FALSE;
}