function Course::get_has_been_assigned_to_degree_id

6.x Course.php Course::get_has_been_assigned_to_degree_id($degree_id = 0)
7.x Course.php Course::get_has_been_assigned_to_degree_id($degree_id = 0)

File

classes/Course.php, line 2103

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;
}