function _Course::set_substitution_hours

5.x _Course.php _Course::set_substitution_hours($degree_id = 0, $val)

File

classes/_Course.php, line 262

Class

_Course

Code

function set_substitution_hours($degree_id = 0, $val) {

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

  $this->set_details_by_degree($degree_id, "substitution_hours", $val);

}