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 switch ($nextClass) {
131 case 'ilassspecfeedbackpagegui':
132 case 'ilassgenfeedbackpagegui':
133 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionFeedbackPageObjectCommandForwarder.php';
135 $forwarder->forward();
161 require_once
"./Services/Style/Content/classes/class.ilObjStyleSheet.php";
162 $this->tpl->setCurrentBlock(
"ContentStyle");
164 $this->tpl->parseCurrentBlock();
168 $this->feedbackOBJ->initGenericFormProperties($form);
169 $this->feedbackOBJ->initSpecificFormProperties($form);
171 $this->tpl->setContent($this->ctrl->getHTML($form));
187 $form->setValuesByPost();
189 if ($form->checkInput()) {
190 $this->feedbackOBJ->saveGenericFormProperties($form);
191 $this->feedbackOBJ->saveSpecificFormProperties($form);
193 $this->questionOBJ->cleanupMediaObjectUsage();
194 $this->questionOBJ->updateTimestamp();
197 ilUtil::sendSuccess($this->lng->txt(
'saved_successfully'),
true);
198 $this->ctrl->redirect($this, self::CMD_SHOW_SYNC);
201 ilUtil::sendSuccess($this->lng->txt(
'saved_successfully'),
true);
202 $this->ctrl->redirect($this, self::CMD_SHOW);
206 $this->tpl->setContent($this->ctrl->getHTML($form));
217 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
220 $form->setFormAction($this->ctrl->getFormAction($this));
221 $form->setTitle($this->lng->txt(
'feedback_generic'));
222 $form->setTableWidth(
"100%");
223 $form->setId(
"feedback");
225 $this->feedbackOBJ->completeGenericFormProperties($form);
226 $this->feedbackOBJ->completeSpecificFormProperties($form);
229 $form->addCommandButton(self::CMD_SAVE, $this->lng->txt(
"save"));
246 $isAdditionalContentEditingModePageObject = $this->questionOBJ->isAdditionalContentEditingModePageObject();
247 $isSaveableInPageObjectEditingMode = $this->feedbackOBJ->isSaveableInPageObjectEditingMode();
249 if ($isAdditionalContentEditingModePageObject && !$isSaveableInPageObjectEditingMode) {
253 $hasWriteAccess = $this->access->checkAccess(
"write",
"",
$_GET[
'ref_id']);
254 $isSelfAssessmentEditingMode = $this->questionOBJ->getSelfAssessmentEditingMode();
256 return $hasWriteAccess || $isSelfAssessmentEditingMode;
271 if (!
$_GET[
"calling_test"]) {
275 if ($this->questionOBJ->isAdditionalContentEditingModePageObject()) {
279 if (!$this->questionOBJ->_questionExistsInPool($this->questionOBJ->original_id)) {
292 $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 ...
setContentStyle()
Set content style.
saveFeedbackFormCmd()
command for processing the submitted feedback editing form.
executeCommand()
Execute Command.
showFeedbackFormCmd()
command for rendering the feedback editing form to the content area
__construct(assQuestionGUI $questionGUI, ilCtrl $ctrl, ilAccessHandler $access, ilGlobalTemplateInterface $tpl, ilTabsGUI $tabs, ilLanguage $lng)
Constructor.
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, $add_random=true, $add_token=true)
get content style path
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Interface ilAccessHandler.