From a439f454df31093157aaa773e549f5bacc5584c1 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 20 Dec 2015 15:29:09 +0100 Subject: implement new subtitles L2S2 interface --- model/Room.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'model/Room.php') 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'); } -- cgit v1.2.3