function _Student::load_student

4.x _Student.php _Student::load_student()
5.x _Student.php _Student::load_student()
1 call to _Student::load_student()

File

classes/_Student.php, line 53

Class

_Student

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("calculate_cumulative_hours_and_gpa", FALSE)) {
      $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));
  }

}