function DegreePlan::get_advised_courses_list
Search API
7.x DegreePlan.php | DegreePlan::get_advised_courses_list() |
6.x DegreePlan.php | DegreePlan::get_advised_courses_list() |
File
- classes/
DegreePlan.php, line 1041
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;
}