function _DegreePlan::add_to_required_course_id_array

5.x _DegreePlan.php _DegreePlan::add_to_required_course_id_array($req_course_id_array)

Add another degree's required_course_id_array onto this one's.

File

classes/_DegreePlan.php, line 696

Class

_DegreePlan

Code

function add_to_required_course_id_array($req_course_id_array) {

  foreach ($req_course_id_array as $course_id => $details) {
    foreach ($req_course_id_array [$course_id] as $degree_id => $details2) {
      foreach ($req_course_id_array [$course_id][$degree_id] as $group_id => $val) {

        $this->required_course_id_array [$course_id][$degree_id][$group_id] = $val;
      }
    }
  }


}