LimeSurvey API - Master branch

ProxyExpressionManager
in package

Proxy Expression Manager Service

Wraps expression manager functionality to make it injectable into services.

Table of Contents

Properties

$modelQuestionGroup  : QuestionGroup
$modelSurvey  : Survey

Methods

__construct()  : mixed
reset()  : void
Reset Survey Expression Manager State
revertUpgradeConditionsToRelevance()  : void
setDirtyFlag()  : void
upgradeConditionsToRelevance()  : void

Properties

Methods

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
see
LimeExpressionManager::RevertUpgradeConditionsToRelevance

upgradeConditionsToRelevance()

public upgradeConditionsToRelevance([int|null $surveyId = null ][, int|null $qid = null ]) : void
Parameters
$surveyId : int|null = null
$qid : int|null = null
Tags
see
LimeExpressionManager::UpgradeConditionsToRelevance

        
On this page

Search results