function _Semester::assign_title
Search API
4.x _Semester.php | _Semester::assign_title() |
5.x _Semester.php | _Semester::assign_title() |
1 call to _Semester::assign_title()
- _Semester::__construct in classes/
_Semester.php
File
- classes/
_Semester.php, line 48
Class
- _Semester
- The name "Semester" might be a little misleading, as it usually refers to years and the like. But, it might also refer to Summer semesters. Basically, its a collection of courses and groups that are required of a student. For example, the…
Code
function assign_title()
{
if ($this->semester_num == 0)
{
$this->title = t("Freshman Year");
}
if ($this->semester_num == 1)
{
$this->title = t("Sophomore Year");
}
if ($this->semester_num == 2)
{
$this->title = t("Junior Year");
}
if ($this->semester_num == 3)
{
$this->title = t("Senior Year");
}
if ($this->semester_num == 4)
{
$this->title = t("Year 5");
}
// Still didn't find anything?
if ($this->title == "") {
$this->title = t("Year") . " " . ($this->semester_num + 1);
}
}