From ea4b6c7699a7fbb7be3d9e5ce86c84a36b63f569 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 15 Mar 2015 19:13:25 +0100 Subject: Move get/set-Calls into ModelBase and abstract all access into a Model Conflicts: model/Overview.php model/Room.php model/StreamList.php tests/ModelTestbase.php --- model/Room.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'model/Room.php') 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 @@ 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'); } } -- cgit v1.2.3