LimeSurvey API - Master branch

SurveyDeactivator
in package

Service class to deactivate survey.

Tags
todo

Move to models/services/survey/ folder.

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

$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
throws
CException
Return values
PluginEvent

beforeDeactivate()

Prepares a survey to Set it into "deactivate" state.

public beforeDeactivate() : PluginEvent

Fires events "beforeSurveyDeactivate"

Tags
throws
CException
Return values
PluginEvent

        
On this page

Search results