CopyQuestionGroup
in package
Table of Contents
Properties
- $questionGroup : QuestionGroup
- $surveyId : int
Methods
- __construct() : mixed
- copyQuestionGroup() : QuestionGroup
- Copies a question group.
Properties
$questionGroup
private
QuestionGroup
$questionGroup
$surveyId
private
int
$surveyId
Methods
__construct()
public
__construct(QuestionGroup $questionGroup, int $surveyId) : mixed
Parameters
- $questionGroup : QuestionGroup
- $surveyId : int
-
the new survey id
copyQuestionGroup()
Copies a question group.
public
copyQuestionGroup(bool $adaptLinks) : QuestionGroup
It is possible to copy the question group to a different survey by setting the surveyId.
Parameters
- $adaptLinks : bool
-
if true, links in the question group description will be adapted to the new survey id.