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');
Basic GUI class for assessment questions.
_isWriteable($question_id, $user_id)
Returns true if the question is writeable by a certain user.
isSyncAfterSaveRequired()
returns the fact wether the presentation of the question sync2pool form is required after saving the ...
saveFeedbackFormCmd()
command for processing the submitted feedback editing form.
executeCommand()
Execute Command.
__construct(assQuestionGUI $questionGUI, ilCtrl $ctrl, ilAccessHandler $access, ilTemplate $tpl, ilTabsGUI $tabs, ilLanguage $lng)
Constructor.
showFeedbackFormCmd()
command for rendering the feedback editing form to the content area
buildForm()
builds the feedback editing form object
const CMD_SHOW
command constants
isFormSaveable()
returns the fact wether the feedback editing form has to be saveable or not.
This class provides processing control methods.
special template class to simplify handling of ITX/PEAR
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.