MediaWiki master
MediaWiki\User\UserIdentityLookup Interface Reference

Inherits IDBAccessObject.

Inherited by MediaWiki\User\ActorStore.

Collaboration diagram for MediaWiki\User\UserIdentityLookup:

Public Member Functions

 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.
 

Additional Inherited Members

- Public Attributes inherited from IDBAccessObject
const READ_NONE = -1
 Constants for object loading bitfield flags (higher => higher QoS)
 

Detailed Description

Definition at line 33 of file UserIdentityLookup.php.

Member Function Documentation

◆ getUserIdentityByName()

MediaWiki\User\UserIdentityLookup::getUserIdentityByName ( string  $name,
int  $queryFlags = IDBAccessObject::READ_NORMAL 
)

Find an identity of a user by $name.

Parameters
string$name
int$queryFlagsone of IDBAccessObject constants
Returns
UserIdentity|null
Exceptions
InvalidArgumentExceptionif non-normalizable actor name is passed.

Implemented in MediaWiki\User\ActorStore.

◆ getUserIdentityByUserId()

MediaWiki\User\UserIdentityLookup::getUserIdentityByUserId ( int  $userId,
int  $queryFlags = IDBAccessObject::READ_NORMAL 
)

Find an identity of a user by $userId.

Parameters
int$userId
int$queryFlagsone of IDBAccessObject constants
Returns
UserIdentity|null

Implemented in MediaWiki\User\ActorStore.

◆ newSelectQueryBuilder()

MediaWiki\User\UserIdentityLookup::newSelectQueryBuilder (   $dbOrQueryFlags = IDBAccessObject::READ_NORMAL)

Returns a specialized SelectQueryBuilder for querying the UserIdentity objects.

Parameters
IReadableDatabase | int$dbOrQueryFlagsThe database connection to perform the query on, or one of the IDBAccessObject::READ_* constants.
Returns
UserSelectQueryBuilder

Implemented in MediaWiki\User\ActorStore.


The documentation for this interface was generated from the following file: