MediaWiki REL1_37
MediaWiki\User\UserIdentityLookup Interface Reference
Inheritance diagram for MediaWiki\User\UserIdentityLookup:
Collaboration diagram for MediaWiki\User\UserIdentityLookup:

Public Member Functions

 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.
 

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 = self::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 = self::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 = self::READ_NORMAL)

Returns a specialized SelectQueryBuilder for querying the UserIdentity objects.

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

Implemented in MediaWiki\User\ActorStore.


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