function _Course::get_bool_substitution_new_from_split

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

File

classes/_Course.php, line 236

Class

_Course

Code

function get_bool_substitution_new_from_split($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_substitution_by_degree_array[$degree_id];
    return $this->get_details_by_degree($degree_id, "bool_substitution_new_from_split");
  }
  else {
    // how about for ANY degree?

    if ($this->get_count_details_by_degree("bool_substitution_new_from_split", TRUE) > 0) {
      return TRUE;
    }
  }

  return FALSE;

}