|
@@ 2062-2070 (lines=9) @@
|
| 2059 |
|
* |
| 2060 |
|
* @return bool True if locked, false otherwise |
| 2061 |
|
*/ |
| 2062 |
|
public function isLocked() { |
| 2063 |
|
if ( $this->mLocked !== null ) { |
| 2064 |
|
return $this->mLocked; |
| 2065 |
|
} |
| 2066 |
|
$authUser = AuthManager::callLegacyAuthPlugin( 'getUserInstance', [ &$this ], null ); |
| 2067 |
|
$this->mLocked = $authUser && $authUser->isLocked(); |
| 2068 |
|
Hooks::run( 'UserIsLocked', [ $this, &$this->mLocked ] ); |
| 2069 |
|
return $this->mLocked; |
| 2070 |
|
} |
| 2071 |
|
|
| 2072 |
|
/** |
| 2073 |
|
* Check if user account is hidden |
|
@@ 2077-2088 (lines=12) @@
|
| 2074 |
|
* |
| 2075 |
|
* @return bool True if hidden, false otherwise |
| 2076 |
|
*/ |
| 2077 |
|
public function isHidden() { |
| 2078 |
|
if ( $this->mHideName !== null ) { |
| 2079 |
|
return $this->mHideName; |
| 2080 |
|
} |
| 2081 |
|
$this->getBlockedStatus(); |
| 2082 |
|
if ( !$this->mHideName ) { |
| 2083 |
|
$authUser = AuthManager::callLegacyAuthPlugin( 'getUserInstance', [ &$this ], null ); |
| 2084 |
|
$this->mHideName = $authUser && $authUser->isHidden(); |
| 2085 |
|
Hooks::run( 'UserIsHidden', [ $this, &$this->mHideName ] ); |
| 2086 |
|
} |
| 2087 |
|
return $this->mHideName; |
| 2088 |
|
} |
| 2089 |
|
|
| 2090 |
|
/** |
| 2091 |
|
* Get the user's ID. |