CopySurveyOptions
in package
This class is a data provider containing all options that could be selected for copying a survey.
Table of Contents
Properties
- $answerOptions : bool
- $conditions : bool
- $newTitle : string|null
- $permissions : bool
- $quotas : bool
- $resetResponseStartId : bool
- $resetStartAndEndDate : bool
- $resourcesAndLinks : bool
Methods
- __construct() : mixed
- Sets an initial state for copying options.
- getNewTitle() : string|null
- isAnswerOptions() : bool
- isConditions() : bool
- isPermissions() : bool
- isQuotas() : bool
- isResetResponseStartId() : bool
- isResourcesAndLinks() : bool
- isStartAndEndDate() : bool
- setAnswerOptions() : void
- setConditions() : void
- setNewTitle() : void
- setPermissions() : void
- setQuotas() : void
- setResetResponseStartId() : void
- setResourcesAndLinks() : void
- setStartAndEndDate() : void
Properties
$answerOptions
private
bool
$answerOptions
whether to copy answer options of the questions of a survey
$conditions
private
bool
$conditions
whether to copy survey conditions
$newTitle
private
string|null
$newTitle
= null
custom title for the copied survey (null = use default " - Copy" suffix)
$permissions
private
bool
$permissions
whether to copy survey permissions
$quotas
private
bool
$quotas
whether to copy survey quotas
$resetResponseStartId
private
bool
$resetResponseStartId
whether to reset a surveys response start-id
$resetStartAndEndDate
private
bool
$resetStartAndEndDate
whether to reset a surveys star and end date
$resourcesAndLinks
private
bool
$resourcesAndLinks
whether to copy resources and links
Methods
__construct()
Sets an initial state for copying options.
public
__construct() : mixed
The initial state is, that everything is copied and nothing is reset.
getNewTitle()
public
getNewTitle() : string|null
Return values
string|null —Custom title for the copied survey, or null to use default.
isAnswerOptions()
public
isAnswerOptions() : bool
Return values
boolisConditions()
public
isConditions() : bool
Return values
boolisPermissions()
public
isPermissions() : bool
Return values
boolisQuotas()
public
isQuotas() : bool
Return values
boolisResetResponseStartId()
public
isResetResponseStartId() : bool
Return values
boolisResourcesAndLinks()
public
isResourcesAndLinks() : bool
Return values
boolisStartAndEndDate()
public
isStartAndEndDate() : bool
Return values
boolsetAnswerOptions()
public
setAnswerOptions(bool $answerOptions) : void
Parameters
- $answerOptions : bool
setConditions()
public
setConditions(bool $conditions) : void
Parameters
- $conditions : bool
setNewTitle()
public
setNewTitle(string|null $newTitle) : void
Parameters
- $newTitle : string|null
-
Custom title for the copied survey, or null to use default.
setPermissions()
public
setPermissions(bool $permissions) : void
Parameters
- $permissions : bool
setQuotas()
public
setQuotas(bool $quotas) : void
Parameters
- $quotas : bool
setResetResponseStartId()
public
setResetResponseStartId(bool $resetResponseStartId) : void
Parameters
- $resetResponseStartId : bool
setResourcesAndLinks()
public
setResourcesAndLinks(bool $resourcesAndLinks) : void
Parameters
- $resourcesAndLinks : bool
setStartAndEndDate()
public
setStartAndEndDate(bool $resetStartAndEndDate) : void
Parameters
- $resetStartAndEndDate : bool