aboutsummaryrefslogtreecommitdiff
path: root/model/Room.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--model/Room.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/model/Room.php b/model/Room.php
index 124d057..b4fc1d1 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -76,6 +76,16 @@ class Room extends ModelBase
return $this->get('ROOMS.'.$this->getSlug().'.SCHEDULE') && $this->has('SCHEDULE');
}
+ public function hasSubtitles() {
+ return
+ $this->get('ROOMS.'.$this->getSlug().'.SUBTITLES') &&
+ $this->has('ROOMS.'.$this->getSlug().'.SUBTITLES_ROOM_ID') &&
+ $this->has('SUBTITLES');
+ }
+ public function getSubtitlesRoomId() {
+ return $this->get('ROOMS.'.$this->getSlug().'.SUBTITLES_ROOM_ID');
+ }
+
public function hasFeedback() {
return $this->get('ROOMS.'.$this->getSlug().'.FEEDBACK') && $this->has('FEEDBACK');
}