19 declare(strict_types=1);
39 private int $status = self::STATUS_UNDEFINED;
52 $this->
lng = $DIC->language();
60 if (self::$instance) {
61 return self::$instance;
71 $this->status = $a_status;
89 $this->reason = $a_reason;
97 $this->translated_reason = $a_reason;
113 if ($this->translated_reason !==
'') {
122 $this->auth_user_id = $a_id;
getReason()
Get reason for authentication success, fail, migration...
const STATUS_AUTHENTICATION_FAILED
static ilAuthStatus $instance
getAuthenticatedUserId()
Get authenticated user id.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getTranslatedReason()
Get translated reason.
setStatus(int $a_status)
Set auth status.
string $translated_reason
const STATUS_AUTHENTICATED
const STATUS_CODE_ACTIVATION_REQUIRED
static getInstance()
Get status instance.
setTranslatedReason(string $a_reason)
Set translated reason.
setReason(string $a_reason)
Set reason.
setAuthenticatedUserId(int $a_id)
__construct()
Constructor.
Auth status implementation.
const STATUS_ACCOUNT_MIGRATION_REQUIRED