120 $ilHelp =
$DIC[
'ilHelp'];
121 $ilHelp->setScreenIdComponent(
'qpl');
123 $cmd = $this->ctrl->getCmd(self::CMD_SHOW);
124 $nextClass = $this->ctrl->getNextClass($this);
126 $this->ctrl->setParameter($this,
'q_id', (
int)
$_GET[
'q_id']);
130 case 'ilassspecfeedbackpagegui':
131 case 'ilassgenfeedbackpagegui':
132 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackPageObjectCommandForwarder.php';
134 $forwarder->forward();
152 require_once
"./Services/Style/Content/classes/class.ilObjStyleSheet.php";
153 $this->tpl->setCurrentBlock(
"ContentStyle");
155 $this->tpl->parseCurrentBlock();
159 $this->feedbackOBJ->initGenericFormProperties($form);
160 $this->feedbackOBJ->initSpecificFormProperties($form);
162 $this->tpl->setContent( $this->ctrl->getHTML($form) );
178 $form->setValuesByPost();
180 if( $form->checkInput() )
182 $this->feedbackOBJ->saveGenericFormProperties($form);
183 $this->feedbackOBJ->saveSpecificFormProperties($form);
185 $this->questionOBJ->cleanupMediaObjectUsage();
186 $this->questionOBJ->updateTimestamp();
191 $this->ctrl->redirect($this, self::CMD_SHOW_SYNC);
195 $this->ctrl->redirect($this, self::CMD_SHOW);
199 $this->tpl->setContent( $this->ctrl->getHTML($form) );
210 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
213 $form->setFormAction($this->ctrl->getFormAction($this));
214 $form->setTitle($this->lng->txt(
'feedback_generic'));
215 $form->setTableWidth(
"100%");
216 $form->setId(
"feedback");
218 $this->feedbackOBJ->completeGenericFormProperties($form);
219 $this->feedbackOBJ->completeSpecificFormProperties($form);
223 $form->addCommandButton(self::CMD_SAVE, $this->lng->txt(
"save"));
240 $isAdditionalContentEditingModePageObject = $this->questionOBJ->isAdditionalContentEditingModePageObject();
241 $isSaveableInPageObjectEditingMode = $this->feedbackOBJ->isSaveableInPageObjectEditingMode();
243 if( $isAdditionalContentEditingModePageObject && !$isSaveableInPageObjectEditingMode )
248 $hasWriteAccess = $this->access->checkAccess(
"write",
"",
$_GET[
'ref_id']);
249 $isSelfAssessmentEditingMode = $this->questionOBJ->getSelfAssessmentEditingMode();
251 return $hasWriteAccess || $isSelfAssessmentEditingMode;
265 if( !
$_GET[
"calling_test"] )
270 if( $this->questionOBJ->isAdditionalContentEditingModePageObject() )
275 if( !$this->questionOBJ->_questionExistsInPool($this->questionOBJ->original_id) )
290 $this->questionGUI->originalSyncForm(
'',
'true');
An exception for terminatinating execution or to throw for unit testing.
Basic GUI class for assessment questions.
static _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.
static getContentStylePath($a_style_id)
get content style path
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.