public function GetLayout(UserSession $user) { $scheduleId = $this->_page->GetScheduleId(); $layoutDate = $this->_page->GetLayoutDate(); $requestedDate = Date::Parse($layoutDate, $user->Timezone); $layout = $this->_scheduleService->GetLayout($scheduleId, new ScheduleLayoutFactory($user->Timezone)); $periods = $layout->GetLayout($requestedDate); // Log::Debug('Getting layout for scheduleId=%s, layoutDate=%s, periods=%s', $scheduleId, $layoutDate,var_export($periods, true)); $this->_page->SetLayoutResponse(new ScheduleLayoutSerializable($periods)); }