102 $this->questionOBJ = $questionGUI->object;
103 $this->feedbackOBJ = $questionGUI->object->feedbackOBJ;
119 $cmd = $this->ctrl->getCmd(self::CMD_SHOW);
120 $nextClass = $this->ctrl->getNextClass($this);
122 $this->ctrl->setParameter($this,
'q_id', (
int)
$_GET[
'q_id']);
126 case 'ilassspecfeedbackpagegui':
127 case 'ilassgenfeedbackpagegui':
128 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackPageObjectCommandForwarder.php';
130 $forwarder->forward();
150 $this->feedbackOBJ->initGenericFormProperties($form);
151 $this->feedbackOBJ->initSpecificFormProperties($form);
153 $this->tpl->setContent( $this->ctrl->getHTML($form) );
169 $form->setValuesByPost();
171 if( $form->checkInput() )
173 $this->feedbackOBJ->saveGenericFormProperties($form);
174 $this->feedbackOBJ->saveSpecificFormProperties($form);
176 $this->questionOBJ->cleanupMediaObjectUsage();
181 $this->ctrl->redirect($this, self::CMD_SHOW_SYNC);
185 $this->ctrl->redirect($this, self::CMD_SHOW);
189 $this->tpl->setContent( $this->ctrl->getHTML($form) );
200 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
203 $form->setFormAction($this->ctrl->getFormAction($this));
204 $form->setTitle($this->lng->txt(
'feedback_generic'));
205 $form->setTableWidth(
"100%");
206 $form->setId(
"feedback");
208 $this->feedbackOBJ->completeGenericFormProperties($form);
209 $this->feedbackOBJ->completeSpecificFormProperties($form);
213 $form->addCommandButton(self::CMD_SAVE, $this->lng->txt(
"save"));
230 $isAdditionalContentEditingModePageObject = $this->questionOBJ->isAdditionalContentEditingModePageObject();
231 $isSaveableInPageObjectEditingMode = $this->feedbackOBJ->isSaveableInPageObjectEditingMode();
233 if( $isAdditionalContentEditingModePageObject && !$isSaveableInPageObjectEditingMode )
238 $hasWriteAccess = $this->access->checkAccess(
"write",
"",
$_GET[
'ref_id']);
239 $isSelfAssessmentEditingMode = $this->questionOBJ->getSelfAssessmentEditingMode();
241 return $hasWriteAccess || $isSelfAssessmentEditingMode;
255 if( !
$_GET[
"calling_test"] )
260 if( $this->questionOBJ->isAdditionalContentEditingModePageObject() )
265 if( !$this->questionOBJ->_questionExistsInPool($this->questionOBJ->original_id) )
280 $this->questionGUI->originalSyncForm(
'',
'true');