Created function to set the next populate until date for repeating shows

This commit is contained in:
denise 2013-03-08 12:17:55 -05:00
parent 9be6b82d97
commit 5111f74494
2 changed files with 14 additions and 0 deletions

View File

@ -134,6 +134,7 @@ class Application_Service_ShowInstanceService
}
}
}
$this->service_show->setNextPopulateUntilDate($nextDate, $show_id, $day);
}
/**

View File

@ -226,4 +226,17 @@ class Application_Service_ShowService
return array($startDateTime, $endDateTime);
}
public function setNextPopulateUntilDate($nextDate, $showId, $day)
{
$nextInfo = explode(" ", $nextDate);
$repeatInfo = CcShowDaysQuery::create()
->filterByDbShowId($showId)
->filterByDbDay($day)
->findOne();
$repeatInfo->setDbNextPopDate($nextInfo[0])
->save();
}
}