Пример #1
0
 /**
  * @param ISchedulePage $page
  * @param array[int]ISchedule $schedules
  * @param ISchedule $currentSchedule
  */
 public function BindSchedules(ISchedulePage $page, $schedules, $currentSchedule)
 {
     $scheduleId = $currentSchedule->GetId();
     $page->SetSchedules($schedules);
     $page->SetScheduleId($scheduleId);
     $page->SetScheduleName($currentSchedule->GetName());
     $page->SetFirstWeekday($currentSchedule->GetWeekdayStart());
     $style = $page->GetScheduleStyle($scheduleId);
     $page->SetScheduleStyle($style);
     if ($currentSchedule->GetIsCalendarSubscriptionAllowed()) {
         $page->SetSubscriptionUrl(new CalendarSubscriptionUrl(null, $currentSchedule->GetPublicId(), null));
     }
 }