Пример #1
0
 private static function populateShow($repeatType, $show_id, $next_pop_date, $first_show, $last_show, $start_time, $duration, $day, $record, $end_timestamp)
 {
     if ($repeatType == -1) {
         Show::populateNonRepeatingShow($show_id, $first_show, $start_time, $duration, $day, $record, $end_timestamp);
     } else {
         if ($repeatType == 0) {
             Show::populateRepeatingShow($show_id, $next_pop_date, $first_show, $last_show, $start_time, $duration, $day, $record, $end_timestamp, '7 days');
         } else {
             if ($repeatType == 1) {
                 Show::populateRepeatingShow($show_id, $next_pop_date, $first_show, $last_show, $start_time, $duration, $day, $record, $end_timestamp, '14 days');
             } else {
                 if ($repeatType == 2) {
                     Show::populateRepeatingShow($show_id, $next_pop_date, $first_show, $last_show, $start_time, $duration, $day, $record, $end_timestamp, '1 month');
                 }
             }
         }
     }
 }