MediaWiki master
MediaWiki\User\UserIdentityUtils Class Reference

Convenience functions for interpreting UserIdentity objects using additional services or config. More...

Public Member Functions

 __construct (TempUserConfig $tempUserConfig)
 
 isNamed (UserIdentity $user)
 Is the user a normal non-temporary registered user?
 
 isTemp (UserIdentity $user)
 Is the user a temporary user?
 

Detailed Description

Convenience functions for interpreting UserIdentity objects using additional services or config.

Since
1.41

Definition at line 13 of file UserIdentityUtils.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\User\UserIdentityUtils::__construct ( TempUserConfig  $tempUserConfig)
Access: internal
Parameters
TempUserConfig$tempUserConfig

Definition at line 21 of file UserIdentityUtils.php.

Member Function Documentation

◆ isNamed()

MediaWiki\User\UserIdentityUtils::isNamed ( UserIdentity  $user)

Is the user a normal non-temporary registered user?

Parameters
UserIdentity$user
Returns
bool

Definition at line 41 of file UserIdentityUtils.php.

References MediaWiki\User\UserIdentity\getName(), and MediaWiki\User\UserIdentity\isRegistered().

◆ isTemp()

MediaWiki\User\UserIdentityUtils::isTemp ( UserIdentity  $user)

Is the user a temporary user?

Parameters
UserIdentity$user
Returns
bool

Definition at line 31 of file UserIdentityUtils.php.

References MediaWiki\User\UserIdentity\getName().


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