function _Student::__construct
Search API
4.x _Student.php | _Student::__construct($student_id = "", DatabaseHandler $db = NULL) |
5.x _Student.php | _Student::__construct($student_id = "", DatabaseHandler $db = NULL) |
File
- classes/
_Student.php, line 12
Class
Code
function __construct($student_id = "", DatabaseHandler $db = NULL)
{
$this->student_id = $student_id;
$this->array_hide_grades_terms = array();
$this->array_significant_courses = array(); // array of course_ids
// the student has taken, or has subs for (or transfer eqv's).
// used later to help speed up assignCoursesToList in FlightPath.
$this->db = $db;
if ($db == NULL)
{
$this->db = get_global_database_handler();
}
// Go ahead and load and assemble
// all information in the database on this student.
$this->load_student();
}