@@ 2049-2057 (lines=9) @@ | ||
2046 | * |
|
2047 | * @return bool True if locked, false otherwise |
|
2048 | */ |
|
2049 | public function isLocked() { |
|
2050 | if ( $this->mLocked !== null ) { |
|
2051 | return $this->mLocked; |
|
2052 | } |
|
2053 | $authUser = AuthManager::callLegacyAuthPlugin( 'getUserInstance', [ &$this ], null ); |
|
2054 | $this->mLocked = $authUser && $authUser->isLocked(); |
|
2055 | Hooks::run( 'UserIsLocked', [ $this, &$this->mLocked ] ); |
|
2056 | return $this->mLocked; |
|
2057 | } |
|
2058 | ||
2059 | /** |
|
2060 | * Check if user account is hidden |
|
@@ 2064-2075 (lines=12) @@ | ||
2061 | * |
|
2062 | * @return bool True if hidden, false otherwise |
|
2063 | */ |
|
2064 | public function isHidden() { |
|
2065 | if ( $this->mHideName !== null ) { |
|
2066 | return $this->mHideName; |
|
2067 | } |
|
2068 | $this->getBlockedStatus(); |
|
2069 | if ( !$this->mHideName ) { |
|
2070 | $authUser = AuthManager::callLegacyAuthPlugin( 'getUserInstance', [ &$this ], null ); |
|
2071 | $this->mHideName = $authUser && $authUser->isHidden(); |
|
2072 | Hooks::run( 'UserIsHidden', [ $this, &$this->mHideName ] ); |
|
2073 | } |
|
2074 | return $this->mHideName; |
|
2075 | } |
|
2076 | ||
2077 | /** |
|
2078 | * Get the user's ID. |