function DegreePlan::add_to_required_course_id_array

7.x DegreePlan.php DegreePlan::add_to_required_course_id_array($req_course_id_array)
6.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 706

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


}