Created function to set the next populate until date for repeating shows
This commit is contained in:
parent
9be6b82d97
commit
5111f74494
|
@ -134,6 +134,7 @@ class Application_Service_ShowInstanceService
|
|||
}
|
||||
}
|
||||
}
|
||||
$this->service_show->setNextPopulateUntilDate($nextDate, $show_id, $day);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue