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();
177 $this->questionOBJ->updateTimestamp();
182 $this->ctrl->redirect($this, self::CMD_SHOW_SYNC);
186 $this->ctrl->redirect($this, self::CMD_SHOW);
190 $this->tpl->setContent( $this->ctrl->getHTML($form) );
201 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
204 $form->setFormAction($this->ctrl->getFormAction($this));
205 $form->setTitle($this->lng->txt(
'feedback_generic'));
206 $form->setTableWidth(
"100%");
207 $form->setId(
"feedback");
209 $this->feedbackOBJ->completeGenericFormProperties($form);
210 $this->feedbackOBJ->completeSpecificFormProperties($form);
214 $form->addCommandButton(self::CMD_SAVE, $this->lng->txt(
"save"));
231 $isAdditionalContentEditingModePageObject = $this->questionOBJ->isAdditionalContentEditingModePageObject();
232 $isSaveableInPageObjectEditingMode = $this->feedbackOBJ->isSaveableInPageObjectEditingMode();
234 if( $isAdditionalContentEditingModePageObject && !$isSaveableInPageObjectEditingMode )
239 $hasWriteAccess = $this->access->checkAccess(
"write",
"",
$_GET[
'ref_id']);
240 $isSelfAssessmentEditingMode = $this->questionOBJ->getSelfAssessmentEditingMode();
242 return $hasWriteAccess || $isSelfAssessmentEditingMode;
256 if( !
$_GET[
"calling_test"] )
261 if( $this->questionOBJ->isAdditionalContentEditingModePageObject() )
266 if( !$this->questionOBJ->_questionExistsInPool($this->questionOBJ->original_id) )
281 $this->questionGUI->originalSyncForm(
'',
'true');
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
isFormSaveable()
returns the fact wether the feedback editing form has to be saveable or not.
This class provides processing control methods.
showFeedbackFormCmd()
command for rendering the feedback editing form to the content area
__construct(assQuestionGUI $questionGUI, ilCtrl $ctrl, ilAccessHandler $access, ilTemplate $tpl, ilTabsGUI $tabs, ilLanguage $lng)
Constructor.
buildForm()
builds the feedback editing form object
isSyncAfterSaveRequired()
returns the fact wether the presentation of the question sync2pool form is required after saving the ...
const CMD_SHOW
command constants
special template class to simplify handling of ITX/PEAR
Basic GUI class for assessment questions.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
saveFeedbackFormCmd()
command for processing the submitted feedback editing form.
executeCommand()
Execute Command.
_isWriteable($question_id, $user_id)
Returns true if the question is writeable by a certain user.