blob: e1878f29a47fe06ce9c75f69b0361156ffae95aa (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 | <?php
class Subtitles extends ModelBase
{
	public function isEnabled() {
		return $this->has('SUBTITLES');
	}
	public function getEnabledRooms($slug) {
		$rooms = [];
		foreach(Room::rooms() as $room)
		{
			if($room->hasSubtitles())
				$rooms[] = $room;
		}
		return $rooms;
	}
	public function getPrimusURL() {
		return $this->get('SUBTITLES.PRIMUS_URL');
	}
	public function getFrontendURL() {
		return $this->get('SUBTITLES.FRONTEND_URL');
	}
}
 |