/** * @param UserDto $user * @return void */ public function SetReservationUser(UserDto $user) { $this->Set('ReservationUserName', $user->FullName()); $this->Set('UserId', $user->Id()); }
/** * @see IEmailMessage::To() */ public function To() { $address = $this->adminDto->EmailAddress(); $name = $this->adminDto->FullName(); return array(new EmailAddress($address, $name)); }
/** * @param UserDto $user * @return void */ public function SetReservationUser(UserDto $user) { $this->Set('ReservationUserName', $user->FullName()); $this->Set('UserId', $user->Id()); $this->Set('IsAdmin', ServiceLocator::GetServer()->GetUserSession()->IsAdmin); $userRepo = new UserRepository(); $userAttributes = array(); $loadedUser = $userRepo->LoadById($user->Id()); $userAttributes['traininglevel'] = $loadedUser->GetAttributeValue(17); $userAttributes['trainingtype'] = $loadedUser->GetAttributeValue(15); $userAttributes['saat'] = $loadedUser->GetAttributeValue(8); $this->Set('UserAttributes', $userAttributes); }
/** * @return string */ function Body() { $this->Set('UserFullName', $this->deletedUser->FullName()); $this->Set('AdminFullName', $this->to->FullName()); return $this->FetchTemplate('AccountDeleted.tpl'); }