/** * @param SchedulePeriod $begin * @param SchedulePeriod $end * @param Date $displayDate * @param int $periodSpan * @param BlackoutItemView $blackout */ public function __construct(SchedulePeriod $begin, SchedulePeriod $end, Date $displayDate, $periodSpan, BlackoutItemView $blackout) { $this->blackout = $blackout; $this->begin = $begin->BeginDate(); $this->displayDate = $displayDate; $this->end = $end->EndDate(); $this->periodSpan = $periodSpan; $this->beginSlotId = $begin->Id(); $this->endSlotId = $end->Id(); $this->_beginPeriod = $begin; $this->_endPeriod = $end; }
/** * @param SchedulePeriod $begin * @param SchedulePeriod $end * @param Date $displayDate * @param int $periodSpan * @param ReservationItemView $reservation */ public function __construct(SchedulePeriod $begin, SchedulePeriod $end, Date $displayDate, $periodSpan, ReservationItemView $reservation) { $this->_reservation = $reservation; $this->_begin = $begin->BeginDate(); $this->_displayDate = $displayDate; $this->_end = $end->EndDate(); $this->_periodSpan = $periodSpan; $this->_beginSlotId = $begin->Id(); $this->_endSlotId = $end->Id(); $this->_beginPeriod = $begin; $this->_endPeriod = $end; }
/** * @param SchedulePeriod $begin * @param SchedulePeriod $end * @param Date $displayDate * @param int $periodSpan * @param ReservationItemView $reservation */ public function __construct(SchedulePeriod $begin, SchedulePeriod $end, Date $displayDate, $periodSpan, ReservationItemView $reservation) { $this->_reservation = $reservation; $this->_begin = $begin->BeginDate(); $this->_displayDate = $displayDate; $this->_end = $end->EndDate(); $this->_periodSpan = $periodSpan; $this->_participantNumber = count($reservation->ParticipantIds); $this->_participantNames = $reservation->ParticipantNames; $this->_inviteeNames = $reservation->InviteeNames; $this->_beginSlotId = $begin->Id(); $this->_endSlotId = $end->Id(); $resourceId = $this->_reservation->GetResourceId(); $resourceRepo = new ResourceRepository(); $resource = $resourceRepo->LoadById($resourceId); $this->_maxparticipants = $resource->GetMaxParticipants(); $this->_beginPeriod = $begin; $this->_endPeriod = $end; }
public function __construct(SchedulePeriod $begin, SchedulePeriod $end, Date $displayDate, $isReservable) { $this->_begin = $begin->BeginDate(); $this->_end = $end->EndDate(); $this->_date = $displayDate; $this->_isReservable = $isReservable; $this->_beginDisplayTime = $this->_begin->GetTime(); if (!$this->_begin->DateEquals($displayDate)) { $this->_beginDisplayTime = $displayDate->GetDate()->GetTime(); } $this->_endDisplayTime = $this->_end->GetTime(); if (!$this->_end->DateEquals($displayDate)) { $this->_endDisplayTime = $displayDate->GetDate()->GetTime(); } $this->_beginSlotId = $begin->Id(); $this->_endSlotId = $end->Id(); $this->_beginPeriod = $begin; $this->_endPeriod = $end; }