From 17ea198ea4a489666de4678bf8de88f3daa970fb Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Wed, 17 Sep 2014 19:49:22 -0400 Subject: [PATCH] Added accessor function for Show image path --- airtime_mvc/application/models/ShowInstance.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/airtime_mvc/application/models/ShowInstance.php b/airtime_mvc/application/models/ShowInstance.php index f5fbf1aa7..c3b423af6 100644 --- a/airtime_mvc/application/models/ShowInstance.php +++ b/airtime_mvc/application/models/ShowInstance.php @@ -69,6 +69,13 @@ SQL; return $show->getDbName(); } + + public function getImagePath() + { + $show = CcShowQuery::create()->findPK($this->getShowId()); + + return $show->getDbImagePath(); + } public function getGenre() {