function Semester::to_string

7.x Semester.php Semester::to_string()
6.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;
}