MediaWiki
REL1_32
AuthManagerAuthPluginUser.php
Go to the documentation of this file.
1
<?php
21
namespace
MediaWiki\Auth
;
22
23
use
User
;
24
29
class
AuthManagerAuthPluginUser
extends
\AuthPluginUser
{
31
private
$user
;
32
33
function
__construct
( $user ) {
34
$this->user =
$user
;
35
}
36
37
public
function
getId
() {
38
return
$this->user->getId();
39
}
40
41
public
function
isLocked
() {
42
return
$this->user->isLocked();
43
}
44
45
public
function
isHidden
() {
46
return
$this->user->isHidden();
47
}
48
49
public
function
resetAuthToken
() {
50
\MediaWiki\Session\SessionManager::singleton()->invalidateSessionsForUser( $this->user );
51
return
true
;
52
}
53
}
AuthPluginUser
Definition
AuthPlugin.php:326
MediaWiki\Auth\AuthManagerAuthPluginUser
Definition
AuthManagerAuthPluginUser.php:29
MediaWiki\Auth\AuthManagerAuthPluginUser\getId
getId()
Definition
AuthManagerAuthPluginUser.php:37
MediaWiki\Auth\AuthManagerAuthPluginUser\isHidden
isHidden()
Indicate whether the user is hidden.
Definition
AuthManagerAuthPluginUser.php:45
MediaWiki\Auth\AuthManagerAuthPluginUser\isLocked
isLocked()
Indicate whether the user is locked.
Definition
AuthManagerAuthPluginUser.php:41
MediaWiki\Auth\AuthManagerAuthPluginUser\__construct
__construct( $user)
Definition
AuthManagerAuthPluginUser.php:33
MediaWiki\Auth\AuthManagerAuthPluginUser\resetAuthToken
resetAuthToken()
Definition
AuthManagerAuthPluginUser.php:49
MediaWiki\Auth\AuthManagerAuthPluginUser\$user
User $user
Definition
AuthManagerAuthPluginUser.php:31
User
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition
User.php:47
MediaWiki\Auth
Definition
AbstractAuthenticationProvider.php:22
includes
auth
AuthManagerAuthPluginUser.php
Generated on Mon Nov 25 2024 15:56:51 for MediaWiki by
1.10.0