Click or drag to resize

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
)

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: IInterpreter
A default interpreter.
Remarks
This interpreter resolve all the specified macros:
MacroDescription
{{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