function _DegreePlan::get_advised_courses_list
Search API
4.x _DegreePlan.php | _DegreePlan::get_advised_courses_list() |
5.x _DegreePlan.php | _DegreePlan::get_advised_courses_list() |
File
- classes/
_DegreePlan.php, line 1026
Class
Code
function get_advised_courses_list()
{
// Return a courseList object containing every course
// in this degreePlan which is marked as boolAdvisedToTake=true.
$rtn_list = new CourseList();
$this->list_semesters->reset_counter();
while ($this->list_semesters->has_more())
{
$semester = $this->list_semesters->get_next();
$rtn_list->add_list($semester->list_courses->get_advised_courses_list());
}
$rtn_list->add_list($this->list_groups->get_advised_courses_list());
return $rtn_list;
}