streaming-website/model/Subtitles.php

27 lines
454 B
PHP
Raw Normal View History

2015-12-20 14:29:09 +00:00
<?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');
}
}