From 9f7e85b2734953a0b94282f6cf72f38eaa734737 Mon Sep 17 00:00:00 2001 From: Naomi Date: Wed, 3 Jul 2013 15:20:40 -0400 Subject: [PATCH] IM-733 Create Development timetable for Airtime Development IM-777 Database structure for new History Feature --- .../application/services/HistoryService.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/airtime_mvc/application/services/HistoryService.php b/airtime_mvc/application/services/HistoryService.php index fc92c5c71..77158fbd2 100644 --- a/airtime_mvc/application/services/HistoryService.php +++ b/airtime_mvc/application/services/HistoryService.php @@ -5,10 +5,10 @@ class Application_Service_HistoryService private $con; private $timezone; - public function __construct() - { + public function __construct() + { $this->con = isset($con) ? $con : Propel::getConnection(CcPlayoutHistoryPeer::DATABASE_NAME); - $this->timezone = date_default_timezone_get(); + $this->timezone = date_default_timezone_get(); } public function insertPlayedItem($schedId) { @@ -37,14 +37,14 @@ class Application_Service_HistoryService //$metadata["end"] = $ends->format('H:i:s'); $metadata["showname"] = $show->getDbName(); - $history = new CcPlayoutHistory(); + $history = new CcPlayoutHistory(); $history->setDbFileId($fileId); $history->setDbStarts($item->getDbStarts(null)); $history->setDbEnds($item->getDbEnds(null)); foreach ($metadata as $key => $val) { - $meta = new CcPlayoutHistoryMetaData(); - $meta->setDbKey($key); + $meta = new CcPlayoutHistoryMetaData(); + $meta->setDbKey($key); $meta->setDbValue($val); $history->addCcPlayoutHistoryMetaData($meta); @@ -55,9 +55,9 @@ class Application_Service_HistoryService $this->con->commit(); } - catch (Exception $e) { - $this->con->rollback(); - throw $e; + catch (Exception $e) { + $this->con->rollback(); + throw $e; } }