ProxyExpressionManager
in package
Proxy Expression Manager Service
Wraps expression manager functionality to make it injectable into services.
Table of Contents
Properties
Methods
- __construct() : mixed
- reset() : void
- Reset Survey Expression Manager State
- revertUpgradeConditionsToRelevance() : void
- setDirtyFlag() : void
- upgradeConditionsToRelevance() : void
Properties
$modelQuestionGroup
private
QuestionGroup
$modelQuestionGroup
$modelSurvey
private
Survey
$modelSurvey
Methods
__construct()
public
__construct(Survey $modelSurvey, QuestionGroup $modelQuestionGroup) : mixed
Parameters
- $modelSurvey : Survey
- $modelQuestionGroup : QuestionGroup
reset()
Reset Survey Expression Manager State
public
reset(int $surveyId) : void
This was originally located in the admin controller Database::resetEM(). The use of static methods make it impossible to inject LimeExpressionManager as a dependency to enable testability. LimeExpressionManager needs to be refactored to make it injectable as a dependency and to make its dependencies injectable. This is a big task which I don't have time to tackle right now. kfoster (2023-05-30)
Parameters
- $surveyId : int
revertUpgradeConditionsToRelevance()
public
revertUpgradeConditionsToRelevance([int|null $surveyId = null ][, int|null $qid = null ]) : void
Parameters
- $surveyId : int|null = null
- $qid : int|null = null
Tags
setDirtyFlag()
public
setDirtyFlag() : void
Tags
upgradeConditionsToRelevance()
public
upgradeConditionsToRelevance([int|null $surveyId = null ][, int|null $qid = null ]) : void
Parameters
- $surveyId : int|null = null
- $qid : int|null = null