48 return self::$instance =
new self();
66 $this->status = $a_status;
84 $this->reason = $a_reason;
93 $this->translated_reason = $a_reason;
110 if(strlen($this->translated_reason))
120 $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.