MediaWiki REL1_32
AuthManagerAuthPluginUser.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Auth;
22
23use User;
24
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}
isHidden()
Indicate whether the user is hidden.
isLocked()
Indicate whether the user is locked.
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
Definition User.php:47