diff options
Diffstat (limited to '')
-rw-r--r-- | model/Schedule.php | 8 |
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; |