static public function _CourseList::cast

4.x _CourseList.php static public _CourseList::cast(ObjList $obj)
5.x _CourseList.php static public _CourseList::cast(ObjList $obj)

Used to cast a regular ObjList object into a CourseList.

Parameters

ObjList $obj:

Return value

CourseList

File

classes/_CourseList.php, line 21

Class

_CourseList

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;

}