Example #1
0
 /**
  * @param UserDto $user
  * @return void
  */
 public function SetReservationUser(UserDto $user)
 {
     $this->Set('ReservationUserName', $user->FullName());
     $this->Set('UserId', $user->Id());
 }
Example #2
0
 /**
  * @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);
 }