From c29e11fa0f5101d30c38377f76db3580719735a8 Mon Sep 17 00:00:00 2001 From: denise Date: Tue, 26 Feb 2013 13:21:39 -0500 Subject: [PATCH] Created empty showInstance service. Split populateShowUntil into 2 new functions: getPopulateDateUntil, and getShowDays --- .../application/services/ScheduleService.php | 5 ++- .../services/ShowInstanceService.php | 8 +++++ .../application/services/ShowService.php | 32 +++++++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 airtime_mvc/application/services/ShowInstanceService.php diff --git a/airtime_mvc/application/services/ScheduleService.php b/airtime_mvc/application/services/ScheduleService.php index e8322882b..c0bc1a844 100644 --- a/airtime_mvc/application/services/ScheduleService.php +++ b/airtime_mvc/application/services/ScheduleService.php @@ -171,6 +171,7 @@ class Application_Service_ScheduleService if ($isAdminOrPM) { $service_show = new Application_Service_ShowService(); + $service_showInstances = new Application_Service_ShowInstanceService(); //create ccShow $ccShow = new CcShow(); @@ -187,7 +188,9 @@ class Application_Service_ScheduleService //create ccShowHosts $service_show->createShowHosts($showData, $showId); - //populate ccShowInstances + $populateShowsUntil = $service_show->getPopulateShowUntilDateTIme(); + //create ccShowInstances + $service_showInstances->createShowInstances($showId, $populateShowsUntil); } } diff --git a/airtime_mvc/application/services/ShowInstanceService.php b/airtime_mvc/application/services/ShowInstanceService.php new file mode 100644 index 000000000..1f7a2eedc --- /dev/null +++ b/airtime_mvc/application/services/ShowInstanceService.php @@ -0,0 +1,8 @@ + $showId), 'all'); + } } \ No newline at end of file