MediaWiki  master
UserIdentityLookup.php
Go to the documentation of this file.
1 <?php
21 namespace MediaWiki\User;
22 
23 use IDBAccessObject;
24 use InvalidArgumentException;
26 
34 
43  public function getUserIdentityByName(
44  string $name,
45  int $queryFlags = self::READ_NORMAL
46  ): ?UserIdentity;
47 
55  public function getUserIdentityByUserId(
56  int $userId,
57  int $queryFlags = self::READ_NORMAL
58  ): ?UserIdentity;
59 
67  public function newSelectQueryBuilder( $dbOrQueryFlags = self::READ_NORMAL ): UserSelectQueryBuilder;
68 }
IDBAccessObject
Interface for database access objects.
Definition: IDBAccessObject.php:57
MediaWiki\User\UserIdentityLookup\newSelectQueryBuilder
newSelectQueryBuilder( $dbOrQueryFlags=self::READ_NORMAL)
Returns a specialized SelectQueryBuilder for querying the UserIdentity objects.
MediaWiki\User\UserIdentity
Interface for objects representing user identity.
Definition: UserIdentity.php:39
Wikimedia\Rdbms\IDatabase
Basic database interface for live and lazy-loaded relation database handles.
Definition: IDatabase.php:38
MediaWiki\User\UserIdentityLookup\getUserIdentityByUserId
getUserIdentityByUserId(int $userId, int $queryFlags=self::READ_NORMAL)
Find an identity of a user by $userId.
MediaWiki\User\UserIdentityLookup
Definition: UserIdentityLookup.php:33
MediaWiki\User
Definition: ActorCache.php:21
MediaWiki\User\UserSelectQueryBuilder
Definition: UserSelectQueryBuilder.php:29
MediaWiki\User\UserIdentityLookup\getUserIdentityByName
getUserIdentityByName(string $name, int $queryFlags=self::READ_NORMAL)
Find an identity of a user by $name.