SurveyDeactivator
in package
Service class to deactivate survey.
Tags
Table of Contents
Properties
- $error : string
- $survey : Survey
- $tableDefinition : array<string|int, mixed>
- $timingsTableDefinition : array<string|int, mixed>
Methods
- __construct() : mixed
- afterDeactivate() : PluginEvent
- Performs work after a survey was Set it into "deactivate" state.
- beforeDeactivate() : PluginEvent
- Prepares a survey to Set it into "deactivate" state.
- setSurvey() : SurveyDeactivator
Properties
$error
protected
string
$error
$survey
protected
Survey
$survey
$tableDefinition
protected
array<string|int, mixed>
$tableDefinition
= []
$timingsTableDefinition
protected
array<string|int, mixed>
$timingsTableDefinition
= []
Methods
__construct()
public
__construct([mixed $survey = null ]) : mixed
Parameters
- $survey : mixed = null
afterDeactivate()
Performs work after a survey was Set it into "deactivate" state.
public
afterDeactivate() : PluginEvent
Archives necessary tables "responseTable", "timingTable". Fires events "afterSurveyDeactivate"
Tags
Return values
PluginEventbeforeDeactivate()
Prepares a survey to Set it into "deactivate" state.
public
beforeDeactivate() : PluginEvent
Fires events "beforeSurveyDeactivate"
Tags
Return values
PluginEventsetSurvey()
public
setSurvey(Survey $survey) : SurveyDeactivator
Parameters
- $survey : Survey