/**
  * This method populates this instance with the already chosen study areas.
  *
  * @param  string     the course's ID
  *
  * @return void
  */
 private function populateAreasForCourse($id)
 {
     $areas = StudipStudyArea::getStudyAreasForCourse($id);
     $this->setAreas($areas);
     $this->sortAreas();
 }
예제 #2
0
 function get_area_ids($course_id)
 {
     $selection = StudipStudyArea::getStudyAreasForCourse($course_id);
     return array_keys($selection->toGroupedArray('sem_tree_id'));
 }