diff options
author | MaZderMind | 2015-12-20 15:29:09 +0100 |
---|---|---|
committer | MaZderMind | 2015-12-20 15:29:09 +0100 |
commit | a439f454df31093157aaa773e549f5bacc5584c1 (patch) | |
tree | fe533d042b76213d0029753a7054090a2a8c5494 /model/Room.php | |
parent | 82fcef7c4cd257c0ee3b666899542e033269af32 (diff) |
implement new subtitles L2S2 interface
Diffstat (limited to 'model/Room.php')
-rw-r--r-- | model/Room.php | 10 |
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'); } |