MediaWiki master
UserIdentityLookup.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\User;
22
23use InvalidArgumentException;
26
34
43 public function getUserIdentityByName(
44 string $name,
45 int $queryFlags = IDBAccessObject::READ_NORMAL
46 ): ?UserIdentity;
47
55 public function getUserIdentityByUserId(
56 int $userId,
57 int $queryFlags = IDBAccessObject::READ_NORMAL
58 ): ?UserIdentity;
59
67 public function newSelectQueryBuilder( $dbOrQueryFlags = IDBAccessObject::READ_NORMAL ): UserSelectQueryBuilder;
68}
getUserIdentityByName(string $name, int $queryFlags=IDBAccessObject::READ_NORMAL)
Find an identity of a user by $name.
getUserIdentityByUserId(int $userId, int $queryFlags=IDBAccessObject::READ_NORMAL)
Find an identity of a user by $userId.
newSelectQueryBuilder( $dbOrQueryFlags=IDBAccessObject::READ_NORMAL)
Returns a specialized SelectQueryBuilder for querying the UserIdentity objects.
Interface for objects representing user identity.
Interface for database access objects.
A database connection without write operations.
Utility class for bot passwords.