public function __construct(User $deletedUser, UserDto $to, UserSession $userSession) { parent::__construct($to->LanguageCode); $this->deletedUser = $deletedUser; $this->to = $to; $this->userSession = $userSession; }
/** * @param UserDto $adminDto * @param User $reservationOwner * @param ReservationSeries $reservationSeries * @param IResource $primaryResource * @param IAttributeRepository $attributeRepository */ public function __construct(UserDto $adminDto, User $reservationOwner, ReservationSeries $reservationSeries, IResource $primaryResource, IAttributeRepository $attributeRepository) { parent::__construct($adminDto->Language()); $this->adminDto = $adminDto; $this->reservationOwner = $reservationOwner; $this->reservationSeries = $reservationSeries; $this->resource = $primaryResource; $this->attributeRepository = $attributeRepository; $this->timezone = $adminDto->Timezone(); }
public function __construct(User $reservationOwner, ReservationSeries $reservationSeries, $language = null, IAttributeRepository $attributeRepository) { if (empty($language)) { $language = $reservationOwner->Language(); } parent::__construct($language); $this->reservationOwner = $reservationOwner; $this->reservationSeries = $reservationSeries; $this->timezone = $reservationOwner->Timezone(); $this->attributeRepository = $attributeRepository; }
/** * @param IGeneratedSavedReport $report * @param IReportDefinition $definition * @param string $toAddress * @param UserSession $reportUser */ public function __construct($report, $definition, $toAddress, $reportUser) { parent::__construct($reportUser->LanguageCode); $this->to = $toAddress; $this->reportUser = $reportUser; $this->Set('Definition', $definition); $this->Set('Report', $report); $contents = $this->FetchTemplate('Reports/custom-csv.tpl'); $name = $report->ReportName(); if (!empty($name)) { $this->name = $name; } $this->AddStringAttachment($contents, "{$this->name}.csv"); }
public function __construct(User $user, $userSession = null) { $this->user = $user; $this->userSession = $userSession; parent::__construct(Configuration::Instance()->GetKey(ConfigKeys::LANGUAGE)); }
public function __construct(ReminderNotice $reminder) { $this->reminder = $reminder; parent::__construct($reminder->Language()); }
public function __construct(User $user, $activationCode) { $this->user = $user; $this->activationCode = $activationCode; parent::__construct($user->Language()); }
public function __construct(User $user, $temporaryPassword) { parent::__construct($user->Language()); $this->user = $user; $this->temporaryPassword = $temporaryPassword; }