function _Student::get_rank_description

4.x _Student.php _Student::get_rank_description($rank_code = "")
5.x _Student.php _Student::get_rank_description($rank_code = "")

Given a rank_code like FR, SO, etc., get the english description. For example: Freshman, Sophomore, etc.

1 call to _Student::get_rank_description()
_Student::load_student_data in classes/_Student.php
This loads a student's personal data, like name and so forth.

File

classes/_Student.php, line 520

Class

_Student

Code

function get_rank_description($rank_code = "") {
  // TODO:  Maybe this should be a setting somewhere instead of hard-coded?
  $rank_array = array(
    "FR" => t("Freshman"),
    "SO" => t("Sophomore"),
    "JR" => t("Junior"),
    "SR" => t("Senior"),
    "PR" => t("Professional"),
  );

  return $rank_array [$rank_code];

}