aboutsummaryrefslogtreecommitdiff
path: root/model/Room.php
diff options
context:
space:
mode:
Diffstat (limited to 'model/Room.php')
-rw-r--r--model/Room.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/model/Room.php b/model/Room.php
index fc1b40d..c7e51f9 100644
--- a/model/Room.php
+++ b/model/Room.php
@@ -1,12 +1,12 @@
<?php
-class Room
+class Room extends ModelBase
{
private $slug;
public function __construct($slug)
{
- if(! has('ROOMS.'.$slug))
+ if(! $this->has('ROOMS.'.$slug))
throw new NotFoundException('Room '.$slug);
$this->slug = $slug;
@@ -26,11 +26,11 @@ class Room
}
public function getStream() {
- return get('ROOMS.'.$this->getSlug().'.STREAM', $this->getSlug());
+ return $this->get('ROOMS.'.$this->getSlug().'.STREAM', $this->getSlug());
}
public function getDisplay() {
- return get('ROOMS.'.$this->getSlug().'.DISPLAY', $this->getSlug());
+ return $this->get('ROOMS.'.$this->getSlug().'.DISPLAY', $this->getSlug());
}
@@ -40,6 +40,6 @@ class Room
}
public function hasSchedule() {
- return get('ROOMS.'.$this->getSlug().'.SCHEDULE') && has('SCHEDULE');
+ return $this->get('ROOMS.'.$this->getSlug().'.SCHEDULE') && $this->has('SCHEDULE');
}
}