protected function PopulateTemplate() { $currentInstance = $this->reservationSeries->CurrentInstance(); parent::PopulateTemplate(); $this->Set('AcceptUrl', sprintf("%s?%s=%s&%s=%s", Pages::INVITATION_RESPONSES, QueryStringKeys::REFERENCE_NUMBER, $currentInstance->ReferenceNumber(), QueryStringKeys::INVITATION_ACTION, InvitationAction::Accept)); $this->Set('DeclineUrl', sprintf("%s?%s=%s&%s=%s", Pages::INVITATION_RESPONSES, QueryStringKeys::REFERENCE_NUMBER, $currentInstance->ReferenceNumber(), QueryStringKeys::INVITATION_ACTION, InvitationAction::Decline)); }
public function __construct(User $reservationOwner, User $participant, ReservationSeries $reservationSeries, IAttributeRepository $attributeRepository) { parent::__construct($reservationOwner, $reservationSeries, $participant->Language(), $attributeRepository); $this->reservationOwner = $reservationOwner; $this->reservationSeries = $reservationSeries; $this->timezone = $participant->Timezone(); $this->participant = $participant; }
protected function PopulateTemplate() { parent::PopulateTemplate(); $this->Set('ApprovedBy', new FullName($this->reservationSeries->BookedBy()->FirstName, $this->reservationSeries->BookedBy()->LastName)); }