/webtrees/tests/app/Services/ |
H A D | UserServiceTest.php | 47 $user_service = new UserService(); 49 $user = $user_service->create('user', 'User', 'user@example.com', 'secret'); 56 $user_service = new UserService(); 57 $user = $user_service->create('user', 'User', 'user@example.com', 'secret'); 59 $user_service->delete($user); 61 self::assertNull($user_service->find($user_id)); 66 $user_service = new UserService(); 67 $user = $user_service->find(999); 74 $user_service = new UserService(); 75 $user1 = $user_service->create('user', 'User', 'user@example.com', 'secret'); [all …]
|
/webtrees/tests/app/ |
H A D | TreeTest.php | 80 $user_service = new UserService(); 84 … $user = $user_service->create('user', 'User', 'user@example.com', 'secret'); 98 $user_service = new UserService(); 102 … $user = $user_service->create('user', 'User', 'user@example.com', 'secret'); 111 $user_service = new UserService(); 115 … $user = $user_service->create('user', 'User', 'user@example.com', 'secret'); 131 $user_service = new UserService(); 135 … $user = $user_service->create('user', 'User', 'user@example.com', 'secret'); 144 $user_service = new UserService(); 148 … $user = $user_service->create('user', 'User', 'user@example.com', 'secret'); [all …]
|
/webtrees/app/Http/RequestHandlers/ |
H A D | UsersCleanupPage.php | 37 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\UsersCleanupPage 40 * @param UserService $user_service 42 public function __construct(UserService $user_service) argument 44 $this->user_service = $user_service; 57 $inactive_users = $this->user_service->all() 58 ->filter($this->user_service->filterInactive($inactive_threshold)) 59 ->sort($this->user_service->sortByLastLogin()); 61 $unverified_users = $this->user_service->unverified() 62 ->filter($this->user_service->filterInactive($unverified_threshold)) 63 ->sort($this->user_service->sortByLastLogin());
|
H A D | UserAddAction.php | 41 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\UserAddAction 44 * @param UserService $user_service 46 public function __construct(UserService $user_service) argument 48 $this->user_service = $user_service; 65 if ($this->user_service->findByUserName($username) instanceof User) { 70 if ($this->user_service->findByEmail($email) instanceof User) { 85 $new_user = $this->user_service->create($username, $real_name, $email, $password);
|
H A D | DeleteUser.php | 38 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\DeleteUser 41 * @param UserService $user_service 43 public function __construct(UserService $user_service) argument 45 $this->user_service = $user_service; 57 $user = $this->user_service->find($user_id); 68 $this->user_service->delete($user);
|
H A D | UsersCleanupAction.php | 41 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\UsersCleanupAction 44 * @param UserService $user_service 46 public function __construct(UserService $user_service) argument 48 $this->user_service = $user_service; 61 $user = $this->user_service->find((int) $user_id); 63 $this->user_service->delete($user);
|
H A D | RegisterAction.php | 62 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\RegisterAction 68 * @param UserService $user_service 74 UserService $user_service argument 79 $this->user_service = $user_service; 126 $user = $this->user_service->create($username, $realname, $email, $password); 163 foreach ($this->user_service->administrators() as $administrator) { 258 if ($this->user_service->findByUserName($username) !== null) { 263 if ($this->user_service->findByEmail($email) !== null) {
|
H A D | VerifyEmail.php | 47 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\VerifyEmail 51 * @param UserService $user_service 53 public function __construct(EmailService $email_service, UserService $user_service) argument 56 $this->user_service = $user_service; 74 $user = $this->user_service->findByUserName($username); 79 foreach ($this->user_service->administrators() as $administrator) {
|
H A D | ControlPanel.php | 94 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\ControlPanel 104 * @param UserService $user_service 114 UserService $user_service argument 123 $this->user_service = $user_service; 152 'all_users' => $this->user_service->all(), 153 'administrators' => $this->user_service->administrators(), 154 'managers' => $this->user_service->managers(), 155 'moderators' => $this->user_service->moderators(), 156 'unapproved' => $this->user_service->unapproved(), 157 'unverified' => $this->user_service->unverified(),
|
H A D | AccountUpdate.php | 43 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\AccountUpdate 46 * @param UserService $user_service 48 public function __construct(UserService $user_service) argument 50 $this->user_service = $user_service; 81 if ($this->user_service->findByUserName($user_name) === null) { 90 if ($this->user_service->findByEmail($email) === null) {
|
H A D | UserEditAction.php | 46 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\UserEditAction 53 * @param UserService $user_service 58 UserService $user_service argument 62 $this->user_service = $user_service; 89 $edit_user = $this->user_service->find($user_id); 147 … if ($edit_user->email() !== $email && $this->user_service->findByEmail($email) instanceof User) { 153 …if ($edit_user->userName() !== $username && $this->user_service->findByUserName($username) instanc…
|
H A D | AccountDelete.php | 40 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\AccountDelete 43 * @param UserService $user_service 45 public function __construct(UserService $user_service) argument 47 $this->user_service = $user_service; 62 $this->user_service->delete($user);
|
H A D | Masquerade.php | 39 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\Masquerade 42 * @param UserService $user_service 44 public function __construct(UserService $user_service) argument 46 $this->user_service = $user_service; 57 $user = $this->user_service->find($user_id);
|
H A D | PasswordResetPage.php | 43 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\PasswordResetPage 46 * @param UserService $user_service 48 public function __construct(UserService $user_service) argument 50 $this->user_service = $user_service; 63 $user = $this->user_service->findByToken($token);
|
H A D | MessagePage.php | 42 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\MessagePage 45 * @param UserService $user_service 47 public function __construct(UserService $user_service) argument 49 $this->user_service = $user_service; 65 $to_user = $this->user_service->findByUserName($to);
|
H A D | PasswordResetAction.php | 40 private UserService $user_service; variable in Fisharebest\\Webtrees\\Http\\RequestHandlers\\PasswordResetAction 43 * @param UserService $user_service 45 public function __construct(UserService $user_service) argument 47 $this->user_service = $user_service; 59 $user = $this->user_service->findByToken($token);
|
/webtrees/app/Module/ |
H A D | ContactsFooterModule.php | 35 private UserService $user_service; variable in Fisharebest\\Webtrees\\Module\\ContactsFooterModule 40 * @param UserService $user_service 42 public function __construct(UserService $user_service) argument 44 $this->user_service = $user_service; 89 $contact_user = $this->user_service->find((int) $tree->getPreference('CONTACT_USER_ID')); 90 … $webmaster_user = $this->user_service->find((int) $tree->getPreference('WEBMASTER_USER_ID')); 129 …te('For technical support or genealogy questions contact %s.', $this->user_service->contactLink($u… 142 …return I18N::translate('For help with genealogy questions contact %s.', $this->user_service->conta… 155 …translate('For technical support and information contact %s.', $this->user_service->contactLink($u…
|
H A D | UserMessagesModule.php | 47 private UserService $user_service; variable in Fisharebest\\Webtrees\\Module\\UserMessagesModule 50 * @param UserService $user_service 52 public function __construct(UserService $user_service) argument 54 $this->user_service = $user_service; 123 …$users = $this->user_service->all()->filter(static function (UserInterface $user) use ($tree): boo… 140 'user_service' => $this->user_service,
|
H A D | PrivacyPolicy.php | 43 private UserService $user_service; variable in Fisharebest\\Webtrees\\Module\\PrivacyPolicy 49 * @param UserService $user_service 51 public function __construct(ModuleService $module_service, UserService $user_service) argument 54 $this->user_service = $user_service; 119 'administrators' => $this->user_service->administrators(),
|
/webtrees/app/Statistics/Repository/ |
H A D | ContactRepository.php | 36 private UserService $user_service; variable in Fisharebest\\Webtrees\\Statistics\\Repository\\ContactRepository 40 * @param UserService $user_service 42 public function __construct(Tree $tree, UserService $user_service) argument 45 $this->user_service = $user_service; 54 $user = $this->user_service->find($user_id); 59 return $this->user_service->contactLink($user, $request); 71 $user = $this->user_service->find($user_id); 76 return $this->user_service->contactLink($user, $request);
|
H A D | UserRepository.php | 45 private UserService $user_service; variable in Fisharebest\\Webtrees\\Statistics\\Repository\\UserRepository 49 * @param UserService $user_service 51 public function __construct(Tree $tree, UserService $user_service) argument 54 $this->user_service = $user_service; 70 foreach ($this->user_service->allLoggedIn() as $user) { 170 return count($this->user_service->allLoggedIn()); 180 foreach ($this->user_service->allLoggedIn() as $user) { 196 foreach ($this->user_service->allLoggedIn() as $user) { 243 return count($this->user_service->all()); 253 return count($this->user_service->administrators());
|
/webtrees/tests/app/Http/RequestHandlers/ |
H A D | DeleteUserTest.php | 41 $user_service = $this->createMock(UserService::class); 42 $user_service->expects($this->once())->method('find')->willReturn($user); 46 $handler = new DeleteUser($user_service); 57 $user_service = $this->createMock(UserService::class); 58 $user_service->expects($this->once())->method('find')->willReturn(null); 62 $handler = new DeleteUser($user_service); 75 $user_service = $this->createMock(UserService::class); 76 $user_service->expects($this->once())->method('find')->willReturn($user); 80 $handler = new DeleteUser($user_service);
|
H A D | MasqueradeTest.php | 44 $user_service = $this->createMock(UserService::class); 45 $user_service->expects($this->once())->method('find')->willReturn($user2); 51 $handler = new Masquerade($user_service); 64 $user_service = $this->createMock(UserService::class); 65 $user_service->expects($this->once())->method('find')->willReturn($user); 71 $handler = new Masquerade($user_service); 86 $user_service = $this->createMock(UserService::class); 87 $user_service->expects($this->once())->method('find')->willReturn(null); 93 $handler = new Masquerade($user_service);
|
H A D | PasswordResetPageTest.php | 38 $user_service = $this->createMock(UserService::class); 39 $user_service 47 $handler = new PasswordResetPage($user_service); 55 $user_service = $this->createMock(UserService::class); 56 $user_service 64 $handler = new PasswordResetPage($user_service);
|
/webtrees/app/Services/ |
H A D | MessageService.php | 54 private UserService $user_service; variable in Fisharebest\\Webtrees\\Services\\MessageService 58 * @param UserService $user_service 60 public function __construct(EmailService $email_service, UserService $user_service) argument 63 $this->user_service = $user_service; 76 $this->user_service->find((int) $tree->getPreference('CONTACT_USER_ID')), 77 $this->user_service->find((int) $tree->getPreference('WEBMASTER_USER_ID')), 191 return $this->user_service->all(); 193 return $this->user_service->all() 198 …return $this->user_service->all()->filter(static function (UserInterface $user) use ($six_months_a…
|