static public function CourseList::cast
Search API
| 7.x CourseList.php | static public CourseList::cast(ObjList $obj) |
| 6.x CourseList.php | static public CourseList::cast(ObjList $obj) |
Used to cast a regular ObjList object into a CourseList.
Parameters
ObjList $obj:
Return value
7 calls to CourseList::cast()
- AdvisingScreen.php in classes/
AdvisingScreen.php - AdvisingScreen::mark_course_as_displayed in classes/
AdvisingScreen.php - Find all instaces of a Course in a Group and mark as displayed.
- CourseList.php in classes/
CourseList.php - CourseList::find_all_matches in classes/
CourseList.php - Using the parent's function of find_all_matches, this will return a CourseList of all courses which match the Course object.
- CourseList::find_best_grade_match in classes/
CourseList.php - Find a list of matches to Course courseC, which fulfill the min_grade requirement, ordered by most best grade first.
File
- classes/
CourseList.php, line 21
Class
Code
static public function cast(ObjList $obj)
{ // This can be used to cast a regular ObjList
// into a CourseList object.
// Use the syntax: CourseList::cast($x);
$new_c_l = new CourseList();
$new_c_l->array_list = $obj->array_list;
$new_c_l->is_empty = $obj->is_empty;
$new_c_l->reset_counter();
return $new_c_l;
}
