function Student::load_settings

6.x Student.php Student::load_settings()
1 call to Student::load_settings()

File

classes/Student.php, line 167

Class

Student

Code

function load_settings() {
  // This will load & set up the array_settings variable for this
  // student.
  $res = $this->db->db_query("SELECT settings FROM student_settings
                  WHERE 
                  student_id = ? 
                  ", $this->student_id);
  $cur = $this->db->db_fetch_array($res);

  if ($cur) {
    if ($arr = unserialize($cur ["settings"])) {
      $this->array_settings = $arr;
    }
  }

}