Changeset - 789540b0ee11
[Not reviewed]
default
0 2 0
Nathan Brink (binki) - 15 years ago 2010-11-29 23:14:37
ohnobinki@ohnopublishing.net
Make the SectionMeeting type attribute (e.g., 'lecture', 'lab') accessible to the frontend.
2 files changed with 20 insertions and 1 deletions:
0 comments (0 inline, 0 general)
class.schedule.php
Show inline comments
 
@@ -385,7 +385,8 @@ class Schedule
 
				      echo '            <td rowspan="' . $rowspan[$dayLoop]
 
					. '" class="' . $single_multi . ' class' . $j
 
					. '" title="prof: ' . htmlentities($section->getProf(), ENT_QUOTES)
 
					. ', room: ' . htmlentities($current_meeting->getLocation(), ENT_QUOTES) . '">'
 
					. ', 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"
 
					. '<span class="prof block">' . htmlentities($section->getProf(), ENT_QUOTES) . "</span>\n"
inc/class.section_meeting.inc
Show inline comments
 
@@ -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
0 comments (0 inline, 0 general)