MediaWiki REL1_37
UserIdentityLookup.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\User;
22
24use 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}
Interface for database access objects.
getUserIdentityByName(string $name, int $queryFlags=self::READ_NORMAL)
Find an identity of a user by $name.
getUserIdentityByUserId(int $userId, int $queryFlags=self::READ_NORMAL)
Find an identity of a user by $userId.
newSelectQueryBuilder( $dbOrQueryFlags=self::READ_NORMAL)
Returns a specialized SelectQueryBuilder for querying the UserIdentity objects.
Interface for objects representing user identity.
Basic database interface for live and lazy-loaded relation database handles.
Definition IDatabase.php:38