function _DatabaseHandler::get_student_catalog_year
Search API
4.x _DatabaseHandler.php | _DatabaseHandler::get_student_catalog_year($student_cwid) |
5.x _DatabaseHandler.php | _DatabaseHandler::get_student_catalog_year($student_cwid) |
1 call to _DatabaseHandler::get_student_catalog_year()
- _DatabaseHandler::get_student_majors_from_db in classes/
_DatabaseHandler.php - Returns an array (or CSV string) of major_codes from the student_degrees table for this student.
File
- classes/
_DatabaseHandler.php, line 1342
Class
Code
function get_student_catalog_year($student_cwid) {
// Let's perform our queries.
$res = $this->db_query("SELECT catalog_year FROM students
WHERE cwid = '?' ", $student_cwid);
$cur = $this->db_fetch_array($res);
$catalog = $cur ["catalog_year"];
$temp = explode("-", $catalog);
return trim($temp [0]);
}