Пример #1
0
 /**
  * Generate full display name of a section given a section's ID.  Returns the same output as the
  * generateFullname() method.
  * Example output: 2008 Fall CSC 1001 001
  */
 static function generateFullnameById($sectionsid)
 {
     $section = self::findById($sectionsid);
     if (!$section) {
         return null;
     }
     $course = CoursePrefsCourse::findById($section->getCoursesId());
     $semester = CoursePrefsSemester::findById($section->getSemestersId());
     return self::generateFullname($semester->getYear(), $semester->getName(), $course->getDepartment(), $course->getCourseNumber(), $section->getSectionNumber());
 }