function _Semester::to_string
Search API
4.x _Semester.php | _Semester::to_string() |
5.x _Semester.php | _Semester::to_string() |
File
- classes/
_Semester.php, line 74
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 to_string()
{
$rtn = "";
$rtn .= " Semester: $this->semester_num \n";
if (!$this->list_courses->is_empty)
{
$rtn .= $this->list_courses->to_string();
}
if (!$this->list_groups->is_empty)
{
$rtn .= $this->list_groups->to_string();
}
return $rtn;
}