CopySurveyQuotas
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- copyQuotas() : int
- Copy all quotas for the source survey to the destination survey.
Properties
$destinationSurvey
private
Survey
$destinationSurvey
The destination survey.
$sourceSurvey
private
Survey
$sourceSurvey
The source survey.
Methods
__construct()
public
__construct(Survey $sourceSurvey, Survey $destinationSurvey) : mixed
Parameters
copyQuotas()
Copy all quotas for the source survey to the destination survey.
public
copyQuotas(array<string|int, mixed> $mappingQuestionIds[, bool $adaptLinks = false ]) : int
Parameters
- $mappingQuestionIds : array<string|int, mixed>
-
A mapping of question IDs between the source and destination surveys. $mappingQuestionIds[sourceQuestionId] = destinationQuestionId; (e.g. $mappingQuestionIds[3520] = 7452;)
- $adaptLinks : bool = false
-
Whether to adapt links in the copied quotas.
Return values
int —amount of copied quotas