function _Student::load_settings

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

File

classes/_Student.php, line 159

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 ($arr = unserialize($cur ["settings"])) {
    $this->array_settings = $arr;
  }

}