CopyQuestionValues
in package
Class CopyQuestionValues
This class owns the values to copy a question
Table of Contents
Properties
- $oSurvey : Survey
- $questionCode : string
- $questionGroupId : int
- $questionL10nData : array<string, CopyQuestionTextValues>
- $questionPositionInGroup : int
- $questiontoCopy : Question
Methods
- getOSurvey() : Survey
- getQuestionCode() : string
- getQuestionGroupId() : int
- getQuestionL10nData() : array<string, CopyQuestionTextValues>
- getQuestionPositionInGroup() : int
- getQuestiontoCopy() : Question
- setOSurvey() : void
- setQuestionCode() : void
- setQuestionGroupId() : void
- setQuestionL10nData() : void
- setQuestionPositionInGroup() : void
- setQuestiontoCopy() : void
Properties
$oSurvey
private
Survey
$oSurvey
the survey the question belongs to
$questionCode
private
string
$questionCode
the question Code
$questionGroupId
private
int
$questionGroupId
questionGroup id that the copied question should belong to
$questionL10nData
private
array<string, CopyQuestionTextValues>
$questionL10nData
the new question texts
$questionPositionInGroup
private
int
$questionPositionInGroup
the position for the question on the left menu group
$questiontoCopy
private
Question
$questiontoCopy
the question that should be copied
Methods
getOSurvey()
public
getOSurvey() : Survey
Return values
SurveygetQuestionCode()
public
getQuestionCode() : string
Return values
stringgetQuestionGroupId()
public
getQuestionGroupId() : int
Return values
intgetQuestionL10nData()
public
getQuestionL10nData() : array<string, CopyQuestionTextValues>
Return values
array<string, CopyQuestionTextValues>getQuestionPositionInGroup()
public
getQuestionPositionInGroup() : int
Return values
intgetQuestiontoCopy()
public
getQuestiontoCopy() : Question
Return values
QuestionsetOSurvey()
public
setOSurvey(Survey $oSurvey) : void
Parameters
- $oSurvey : Survey
setQuestionCode()
public
setQuestionCode(string $questionCode) : void
Parameters
- $questionCode : string
setQuestionGroupId()
public
setQuestionGroupId(int $questionGroupId) : void
Parameters
- $questionGroupId : int
setQuestionL10nData()
public
setQuestionL10nData(array<string|int, mixed> $questionL10nData) : void
Parameters
- $questionL10nData : array<string|int, mixed>
setQuestionPositionInGroup()
public
setQuestionPositionInGroup(int $questionPositionInGroup) : void
Parameters
- $questionPositionInGroup : int
setQuestiontoCopy()
public
setQuestiontoCopy(Question $questiontoCopy) : void
Parameters
- $questiontoCopy : Question