diff --git a/class.schedule.php b/class.schedule.php --- a/class.schedule.php +++ b/class.schedule.php @@ -385,7 +385,8 @@ class Schedule echo ' ' + . ', room: ' . htmlentities($current_meeting->getLocation(), ENT_QUOTES) + . ', type: ' . htmlentities($current_meeting->type_get(), ENT_QUOTES) . '">' . htmlentities($class->getName(), ENT_QUOTES) . '-' . htmlentities($section->getLetter(), ENT_QUOTES) . "\n" . '' . htmlentities($section->getProf(), ENT_QUOTES) . "\n" diff --git a/inc/class.section_meeting.inc b/inc/class.section_meeting.inc --- a/inc/class.section_meeting.inc +++ b/inc/class.section_meeting.inc @@ -144,6 +144,24 @@ class SectionMeeting /** * \brief + * Get the type of section meeting this is. + * + * Examples of Section meeting types include 'lecture' and + * 'lab'. Currently, any string may be used as a Section meeting + * type; the possibilities for this field are controlled by the + * crawl scripts authors' choices about what they pass to + * SectionMeeting(). + * + * \return + * A string indicating the type of section meeting. + */ + public function type_get() + { + return $this->type; + } + + /** + * \brief * Check if this section conflicts with the given section. * * \param $that