function Student::load_student
Search API
7.x Student.php | Student::load_student() |
6.x Student.php | Student::load_student() |
1 call to Student::load_student()
- Student::__construct in classes/
Student.php
File
- classes/
Student.php, line 61
Class
Code
function load_student()
{
$this->list_transfer_eqvs_unassigned = new CourseList();
$this->list_courses_taken = new CourseList();
$this->list_courses_added = new CourseList();
$this->list_substitutions = new SubstitutionList();
$this->list_standardized_tests = new ObjList();
$this->array_settings = array();
if ($this->student_id != "")
{
$this->determine_terms_to_hide_grades();
$this->load_transfer_eqvs_unassigned();
$this->load_courses_taken();
$this->load_student_data();
$this->load_test_scores();
$this->load_settings();
$this->load_significant_courses();
//$this->load_unassignments();
//$this->load_student_substitutions();
// If we are supposed to set cumulative hours and gpa, perform that
// operation now.
if (variable_get_for_school("calculate_cumulative_hours_and_gpa", 'no', $this->school_id) == 'yes') {
$arr = $this->calculate_cumulative_hours_and_gpa();
$this->cumulative_hours = $arr ["cumulative_total_hours"];
$this->gpa = $arr ["cumulative_gpa"];
}
}
// When we load this student, let's also check for any hooks relating
// to loading this student.
// Since this class might be used outside of FP, only do this if we know
// that the bootstrap.inc file has been executed.
if ($GLOBALS ["fp_bootstrap_loaded"] == TRUE) {
invoke_hook("student_load", array(&$this));
}
}