diff options
| author | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2025-01-24 15:26:52 +0100 |
|---|---|---|
| committer | Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de> | 2025-01-24 15:26:52 +0100 |
| commit | cba3b3c1b8c0ce11c818e8e832752221b70fd3ba (patch) | |
| tree | d32771ad6154f25db4e2296301fd497fb0c18a2c /lib | |
| parent | 7ff14f9d59d098147bb78ee0de8e385fe2fdc208 (diff) | |
add room name to schedule events, fixes #5149biest-5149
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/classes/calendar/EventData.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/classes/calendar/EventData.php b/lib/classes/calendar/EventData.php index db1e472..58265cd 100644 --- a/lib/classes/calendar/EventData.php +++ b/lib/classes/calendar/EventData.php @@ -24,6 +24,7 @@ class EventData public $icon; public $border_colour; public $all_day; + public $header_text; /** * @var string The ID in this field is used to group events when displayed @@ -50,7 +51,8 @@ class EventData string $icon = '', string $border_colour = '', bool $all_day = false, - string $group_id = '' + string $group_id = '', + string $header_text = null ) { $this->begin = $begin; @@ -72,6 +74,7 @@ class EventData $this->border_colour = $border_colour ?: $background_colour; $this->all_day = $all_day; $this->group_id = $group_id; + $this->header_text = $header_text; } @@ -106,6 +109,7 @@ class EventData 'color' => $this->background_colour, 'borderColor' => $this->border_colour, 'editable' => $this->editable, + 'header_text' => $this->header_text, 'studip_weekday_begin' => $this->begin->format('N'), 'studip_weekday_end' => $this->end->format('N'), 'studip_object_class' => $this->object_class, |
