getId() > 0; } public static function url(): string { return SITE_DIR . (self::isAuthorized() ? "personal/" : "login/"); } public static function label(string $accountCode, string $loginCode): string { $code = self::isAuthorized() ? $accountCode : $loginCode; $text = (string)Loc::getMessage($code); return $text !== "" ? $text : (string)Loc::getMessage($accountCode); } }