4 require_once
'Modules/TestQuestionPool/classes/feedback/class.ilAssMultiOptionQuestionFeedback.php';
42 if( !$this->questionOBJ->getSelfAssessmentEditingMode() )
45 $header->setTitle($this->lng->txt(
'feedback_answers'));
48 require_once
'./Services/Form/classes/class.ilRadioGroupInputGUI.php';
49 require_once
'./Services/Form/classes/class.ilRadioOption.php';
61 $feedback->setRequired(
true);
66 $propertyLabel = $this->questionOBJ->prepareTextareaOutput(
70 $propertyPostVar =
"feedback_answer_$index";
73 $propertyLabel , $propertyPostVar, $this->questionOBJ->isAdditionalContentEditingModePageObject()
90 if (!$this->questionOBJ->getSelfAssessmentEditingMode())
93 $this->questionOBJ->getSpecificFeedbackSetting()
98 if( $this->questionOBJ->isAdditionalContentEditingModePageObject() )
107 $value = $this->questionOBJ->prepareTextareaOutput(
128 if( !$this->questionOBJ->isAdditionalContentEditingModePageObject() )
135 $this->questionOBJ->getId(), $index, $form->
getInput(
"feedback_answer_$index")
163 array(
'feedback_setting' => array(
'integer', $specificFeedbackSetting)),
164 array(
'question_fi' => array(
'integer', $questionId))
186 $res = $this->db->queryF(
187 "SELECT * FROM {$this->getSpecificFeedbackTableName()} WHERE question_fi = %s", array(
'integer'), array($originalQuestionId)
190 while(
$row = $this->db->fetchAssoc(
$res) )
195 'feedback_id' => array(
'integer', $nextId),
196 'question_fi' => array(
'integer', $duplicateQuestionId),
197 'answer' => array(
'integer',
$row[
'answer']),
198 'feedback' => array(
'text',
$row[
'feedback']),
199 'tstamp' => array(
'integer', time())
202 if( $this->questionOBJ->isAdditionalContentEditingModePageObject() )
225 $this->db->manipulateF(
226 "DELETE FROM {$this->getSpecificFeedbackTableName()} WHERE question_fi = %s",
227 array(
'integer'), array($originalQuestionId)
231 $res = $this->db->queryF(
232 "SELECT * FROM {$this->getSpecificFeedbackTableName()} WHERE question_fi = %s",
233 array(
'integer'), array($duplicateQuestionId)
237 while(
$row = $this->db->fetchAssoc(
$res) )
242 'feedback_id' => array(
'integer', $nextId),
243 'question_fi' => array(
'integer', $originalQuestionId),
244 'answer' => array(
'integer',
$row[
'answer']),
245 'feedback' => array(
'text',
$row[
'feedback']),
246 'tstamp' => array(
'integer',time())
253 $res = $this->db->queryF(
254 "SELECT feedback_setting FROM {$this->getSpecificQuestionTableName()} WHERE question_fi = %s",
255 array(
'integer'), array($sourceQuestionId)
261 array(
'feedback_setting' => array(
'integer',
$row[
'feedback_setting']) ),
262 array(
'question_fi' => array(
'integer', $targetQuestionId) )