function _FlightPath::__construct

4.x _FlightPath.php _FlightPath::__construct($student = "", $degree_plan = "", DatabaseHandler $db = null, $bool_perform_full_init = false)
5.x _FlightPath.php _FlightPath::__construct($student = "", $degree_plan = "", DatabaseHandler $db = null, $bool_perform_full_init = false)

File

classes/_FlightPath.php, line 9

Class

_FlightPath

Code

function __construct($student = "", $degree_plan = "", DatabaseHandler $db = null, $bool_perform_full_init = false) 
 {
  if ($student != "") 
   {
    $this->student = $student;
  }
  if ($degree_plan != "") 
   {
    $this->degree_plan = $degree_plan;
  }

  if ($db != null) 
   {
    $this->db = $db;
  }
  else {
    $this->db = get_global_database_handler();
  }

  if ($bool_perform_full_init == true) 
   {
    $this->init(true);
  }

  $this->course_list_advised_courses = new CourseList();

}