aboutsummaryrefslogtreecommitdiff
path: root/model/Schedule.php
diff options
context:
space:
mode:
authordedeibel2018-12-28 21:39:16 +0100
committerdedeibel2018-12-28 21:39:16 +0100
commitddb812a97654b341da2d35d4695f970b3b555dcb (patch)
treebb221e3557c7f96154057377e44e5f60e80d56b8 /model/Schedule.php
parent7c6f41c8e802b582a566a6b0f484dbf91300a1a5 (diff)
Mark optouts in schedule view as optout / no stream
Diffstat (limited to '')
-rw-r--r--model/Schedule.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/model/Schedule.php b/model/Schedule.php
index 4b5d25e..5ffbeda 100644
--- a/model/Schedule.php
+++ b/model/Schedule.php
@@ -39,6 +39,13 @@ class Schedule
return isset( $mapping[$scheduleRoom] );
}
+ public function isOptout($event) {
+ if (isset($event->recording)) {
+ return $event->recording->optout == 'true';
+ }
+ return false;
+ }
+
public function getMappedRoom($scheduleRoom) {
$mapping = $this->getScheduleToRoomSlugMapping();
return $this->getConference()->getRoomIfExists( @$mapping[$scheduleRoom] );
@@ -199,6 +206,7 @@ class Schedule
'end' => $end,
'duration' => $duration,
'room_known' => $this->isRoomMapped($name),
+ 'optout' => $this->isOptout($event),
);
$lastend = $end;