CC-4961: Show linking
Add front-end for creating a show with monthly repeats on same day of week
This commit is contained in:
parent
187e49e4b2
commit
327d0dd6c9
3 changed files with 31 additions and 3 deletions
|
@ -23,7 +23,15 @@ class Application_Service_ShowService
|
|||
|
||||
public function addUpdateShow($showData, $isUpdate=false)
|
||||
{
|
||||
$repeatType = ($showData['add_show_repeats']) ? $showData['add_show_repeat_type'] : -1;
|
||||
if ($showData["add_show_repeats"]) {
|
||||
$repeatType = $showData["add_show_repeat_type"];
|
||||
if ($showData["add_show_repeat_type"] == 2) {
|
||||
$repeatType = $showData["add_show_monthly_repeat_type"];
|
||||
}
|
||||
} else {
|
||||
$repeatType = -1;
|
||||
}
|
||||
//$repeatType = ($showData['add_show_repeats']) ? $showData['add_show_repeat_type'] : -1;
|
||||
$isRecorded = (isset($showData['add_show_record']) && $showData['add_show_record']) ? 1 : 0;
|
||||
$isRebroadcast = (isset($showData['add_show_rebroadcast']) && $showData['add_show_rebroadcast']) ? 1 : 0;
|
||||
|
||||
|
@ -709,9 +717,9 @@ SQL;
|
|||
* @param string $showStart
|
||||
* @param string $timezone user's local timezone
|
||||
*/
|
||||
private function getMonthlyWeeklyRepeatInterval($showStart, $timezone)
|
||||
private function getMonthlyWeeklyRepeatInterval($showStart)
|
||||
{
|
||||
$start = new DateTime($showStart, new DateTimeZone($timezone));
|
||||
$start = clone $showStart;
|
||||
|
||||
$dayOfMonth = $start->format("j");
|
||||
$dayOfWeek = $start->format("l");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue