|
MediaWiki 1.44.0
|
Public Member Functions | |
| __construct (ServiceOptions $options, ObjectFactory $objectFactory) | |
| getFirstRegistration (UserIdentity $user) | |
| Find the first registration timestamp for a given user. | |
| getFirstRegistrationBatch (iterable $users) | |
| Get the first registration timestamp for a batch of users. | |
| getRegistration (UserIdentity $user, string $type=LocalUserRegistrationProvider::TYPE) | |
| isRegistered (string $type) | |
| Is a registration provider registered? | |
Definition at line 15 of file UserRegistrationLookup.php.
| MediaWiki\User\Registration\UserRegistrationLookup::__construct | ( | ServiceOptions | $options, |
| ObjectFactory | $objectFactory ) |
Definition at line 33 of file UserRegistrationLookup.php.
References MediaWiki\Config\ServiceOptions\assertRequiredOptions(), MediaWiki\Config\ServiceOptions\get(), and MediaWiki\MainConfigNames\UserRegistrationProviders.
| MediaWiki\User\Registration\UserRegistrationLookup::getFirstRegistration | ( | UserIdentity | $user | ) |
Find the first registration timestamp for a given user.
Note this invokes all registered providers.
| UserIdentity | $user |
Definition at line 93 of file UserRegistrationLookup.php.
| MediaWiki\User\Registration\UserRegistrationLookup::getFirstRegistrationBatch | ( | iterable | $users | ) |
Get the first registration timestamp for a batch of users.
This invokes all registered providers.
| iterable<UserIdentity> | $users |
null for users without a stored registration timestamp and for anonymous users. Definition at line 120 of file UserRegistrationLookup.php.
| MediaWiki\User\Registration\UserRegistrationLookup::getRegistration | ( | UserIdentity | $user, |
| string | $type = LocalUserRegistrationProvider::TYPE ) |
| UserIdentity | $user | User for which registration should be fetched. |
| string | $type | Name of a registered registration provider |
Definition at line 78 of file UserRegistrationLookup.php.
| MediaWiki\User\Registration\UserRegistrationLookup::isRegistered | ( | string | $type | ) |
Is a registration provider registered?
| string | $type |
Definition at line 49 of file UserRegistrationLookup.php.