/**
  * Returns the title of this event.
  * The title of a course event is the name of the course or if a topic is
  * assigned, the title of this topic. If the user has not the permission
  * Event::PERMISSION_READABLE, the title is "Keine Berechtigung.".
  *
  * @return string
  */
 public function getTitle()
 {
     $title = parent::getTitle();
     if ($this->havePermission(Event::PERMISSION_READABLE)) {
         $title .= ' ' . _('(fällt aus)');
     }
     return $title;
 }
示例#2
0
 public function getProperties()
 {
     if ($this->properties === null) {
         $this->properties = array('DTSTART' => $this->getStart(), 'DTEND' => $this->getEnd(), 'SUMMARY' => $this->getTitle(), 'DESCRIPTION' => $this->getDescription(), 'LOCATION' => $this->getLocation(), 'STUDIP_CATEGORY' => $this->getStudipCategory(), 'CREATED' => $this->mkdate, 'LAST-MODIFIED' => $this->chdate, 'STUDIP_ID' => $this->termin_id, 'SEM_ID' => $this->range_id, 'SEMNAME' => $this->course->name, 'CLASS' => 'CONFIDENTIAL', 'UID' => CourseEvent::getUid(), 'RRULE' => CourseEvent::getRecurrence(), 'EXDATE' => '', 'EVENT_TYPE' => 'sem', 'STATUS' => 'CONFIRMED', 'DTSTAMP' => time());
     }
     return $this->properties;
 }
示例#3
0
 protected static function configure($config = array())
 {
     parent::configure($config);
 }