/** * 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; }