Created empty showInstance service.
Split populateShowUntil into 2 new functions: getPopulateDateUntil, and getShowDays
This commit is contained in:
parent
d497cfa857
commit
c29e11fa0f
3 changed files with 44 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue