InterpreterFactoryGetDefault Method |
Get the default interpreter for the specified user.
Namespace:
AskiaPortalCmn.Common
Assembly:
AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax public static IInterpreter GetDefault(
IContext context,
IUser user,
ISurvey survey = null
)
Public Shared Function GetDefault (
context As IContext,
user As IUser,
Optional survey As ISurvey = Nothing
) As IInterpreter
public:
static IInterpreter^ GetDefault(
IContext^ context,
IUser^ user,
ISurvey^ survey = nullptr
)
Parameters
- context
- Type: AskiaPortalCmnIContext
Context of execution - user
- Type: AskiaPortalCmnIUser
User use to resolve macros. - survey (Optional)
- Type: AskiaPortalCmnISurvey
Survey to use in the macros
Return Value
Type:
IInterpreterA default interpreter.
Remarks
This interpreter resolve all the specified macros:
Macro | Description |
---|
{{User.LastName}} | Last name of the user |
{{User.FirstName}} | First name of the user. |
{{User.Login}} | Login of the user. |
{{User.Email}} | Email address of the user. |
{{LinkTo.AskiaPortal}} | Link to AskiaPortal. |
{{LinkTo.ActivateAccount}} | Link to activate a user account. |
{{LinkTo.ResetPassword}} | Link to reset a user password. |
{{Survey.Id}} | Identifier of the survey |
{{Survey.Guid}} | GUID of the survey |
{{Survey.Name}} | Name of the survey |
See Also