MediaWiki
master
UserIdentityLookup.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\User
;
22
23
use InvalidArgumentException;
24
use
Wikimedia\Rdbms\IDBAccessObject
;
25
use
Wikimedia\Rdbms\IReadableDatabase
;
26
33
interface
UserIdentityLookup
{
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
}
MediaWiki\User\UserSelectQueryBuilder
Definition
UserSelectQueryBuilder.php:33
MediaWiki\User\UserIdentityLookup
Definition
UserIdentityLookup.php:33
MediaWiki\User\UserIdentityLookup\getUserIdentityByName
getUserIdentityByName(string $name, int $queryFlags=IDBAccessObject::READ_NORMAL)
Find an identity of a user by $name.
MediaWiki\User\UserIdentityLookup\getUserIdentityByUserId
getUserIdentityByUserId(int $userId, int $queryFlags=IDBAccessObject::READ_NORMAL)
Find an identity of a user by $userId.
MediaWiki\User\UserIdentityLookup\newSelectQueryBuilder
newSelectQueryBuilder( $dbOrQueryFlags=IDBAccessObject::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\IDBAccessObject
Interface for database access objects.
Definition
IDBAccessObject.php:59
Wikimedia\Rdbms\IReadableDatabase
A database connection without write operations.
Definition
IReadableDatabase.php:37
MediaWiki\User
Utility class for bot passwords.
Definition
ActorCache.php:21
includes
user
UserIdentityLookup.php
Generated on Fri Dec 6 2024 04:27:32 for MediaWiki by
1.10.0