function FlightPath::__construct

7.x FlightPath.php FlightPath::__construct($student = "", $degree_plan = "", DatabaseHandler $db = null, $bool_perform_full_init = false)
6.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();

}