SetVariableExpressionEnd

Usage
This event happen when ExpressionScript is constructed. It allow to update know variables array by expression.

Input

 * surveyId : the related survey id
 * language : the related language
 * knownVars : the current known Variables by expression.
 * newExpressionSuffixes : and empty array by default. To be added as expression suffix (like .question, .NAOK etc …)

Possible output

 * knownVars : The new knowVars

Some detail of knowVars
knowVars are array of variables know by expression manager. Key are the variables.

LimeSurvey core have 2 types of variables for knowVars :


 * Value fixed by template or survey or current view : SID, SURVEYURL, QID …
 * Value from response of the user.

Fixed variables are stored as

Dynamic variables are stored as

About Expression Suffixes
When ExpressionScript get a variables, if there are no suffix, default one is code. If you want to add new suffixes : you can add it in newExpressionSuffixes. Currently only «Fixed» suffix is allowed. Value of the suffix is same in PHP and javascript.

Sample plugins

 * expressionFixedDbVar
 * expressionQuestionForAll
 * expressionQuestionHelp