# HG changeset patch # User Nathan Phillip Brink # Date 2010-11-29 23:14:37 # Node ID 789540b0ee1115a59d1dd25b4e2d684d1540fb19 # Parent ed117007f6f54d91264fc20ae21020cb671ec1ac Make the SectionMeeting type attribute (e.g., 'lecture', 'lab') accessible to the frontend. 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