Lines Matching refs:UserInterface
22 use Fisharebest\Webtrees\Contracts\UserInterface; alias
54 * @param UserInterface|null $user
58 public static function isAdmin(UserInterface|null $user = null): bool
62 return $user->getPreference(UserInterface::PREF_IS_ADMINISTRATOR) === '1';
69 * @param UserInterface|null $user
73 public static function isManager(Tree $tree, UserInterface|null $user = null): bool
77 …::isAdmin($user) || $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) === UserInterfa…
84 * @param UserInterface|null $user
88 public static function isModerator(Tree $tree, UserInterface|null $user = null): bool
94 … $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) === UserInterface::ROLE_MODERATOR;
101 * @param UserInterface|null $user
105 public static function isEditor(Tree $tree, UserInterface|null $user = null): bool
111 … $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) === UserInterface::ROLE_EDITOR;
118 * @param UserInterface|null $user
122 public static function isMember(Tree $tree, UserInterface|null $user = null): bool
128 … $tree->getUserPreference($user, UserInterface::PREF_TREE_ROLE) === UserInterface::ROLE_MEMBER;
135 * @param UserInterface|null $user
139 public static function accessLevel(Tree $tree, UserInterface|null $user = null): int
167 * @return UserInterface
169 public static function user(): UserInterface
179 * @param UserInterface $user
183 public static function login(UserInterface $user): void
205 * @param UserInterface $user
209 …kComponentAccess(ModuleInterface $module, string $interface, Tree $tree, UserInterface $user): void
571 * @param UserInterface $user
575 public static function canUploadMedia(Tree $tree, UserInterface $user): bool