44 if (self::$instance) {
47 return self::$instance =
new self();
65 $this->status = $a_status;
83 $this->reason = $a_reason;
92 $this->translated_reason = $a_reason;
109 if (strlen($this->translated_reason)) {
118 $this->auth_user_id = $a_id;
An exception for terminatinating execution or to throw for unit testing.
Auth status implementation.
getReason()
Get reason for authentication success, fail, migration...
setTranslatedReason($a_reason)
Set translated reason.
const STATUS_CODE_ACTIVATION_REQUIRED
__construct()
Constructor.
setAuthenticatedUserId($a_id)
setStatus($a_status)
Set auth status.
getTranslatedReason()
Get translated reason.
const STATUS_AUTHENTICATED
setReason($a_reason)
Set reason.
getAuthenticatedUserId()
Get authenticated user id.
static getInstance()
Get status instance.
const STATUS_AUTHENTICATION_FAILED
const STATUS_ACCOUNT_MIGRATION_REQUIRED
static getLogger($a_component_id)
Get component logger.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.