4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionAbstractPageObjectCommandForwarder.php';
27 parent::__construct($questionOBJ, $ctrl, $tabs, $lng);
29 if( !isset(
$_GET[
'feedback_id']) || !(
int)
$_GET[
'feedback_id'] || !$questionOBJ->feedbackOBJ->checkFeedbackParent((
int)
$_GET[
'feedback_id']) )
50 $pageObjectGUI->setEnabledTabs(
true);
52 $this->tabs->setBackTarget(
53 $this->lng->txt(
'tst_question_feedback_back_to_feedback_form'),
57 $this->ctrl->setParameter($pageObjectGUI,
'feedback_id',
$_GET[
'feedback_id']);
58 $this->ctrl->setParameter($pageObjectGUI,
'feedback_type',
$_GET[
'feedback_type']);
60 $this->ctrl->forwardCommand($pageObjectGUI);
70 include_once(
"./Modules/TestQuestionPool/classes/feedback/class.ilAssQuestionFeedback.php");
73 include_once(
"./Modules/TestQuestionPool/classes/feedback/class.ilAssGenFeedbackPage.php");
77 $pageObject->setParentId($this->questionOBJ->getId());
78 $pageObject->setId($pageObjectId);
79 $pageObject->createFromXML();
84 include_once(
"./Modules/TestQuestionPool/classes/feedback/class.ilAssSpecFeedbackPage.php");
88 $pageObject->setParentId($this->questionOBJ->getId());
89 $pageObject->setId($pageObjectId);
90 $pageObject->createFromXML();
103 include_once(
"./Modules/TestQuestionPool/classes/feedback/class.ilAssQuestionFeedback.php");
106 include_once(
"./Modules/TestQuestionPool/classes/feedback/class.ilAssGenFeedbackPageGUI.php");
108 $pageObjectGUI->obj->addUpdateListener(
112 return $pageObjectGUI;
116 include_once(
"./Modules/TestQuestionPool/classes/feedback/class.ilAssSpecFeedbackPageGUI.php");
118 $pageObjectGUI->obj->addUpdateListener(
122 return $pageObjectGUI;
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
__construct(assQuestion $questionOBJ, ilCtrl $ctrl, ilTabsGUI $tabs, ilLanguage $lng)
Constructor.
This class provides processing control methods.
getPageObjectGUI($pageObjectType, $pageObjectId)
instantiates, initialises and returns a page object gui class
Generic feedback page GUI class.
Abstract basic class which is to be extended by the concrete assessment question type classes...
static isValidFeedbackPageObjectType($feedbackPageObjectType)
returns the fact wether the given page object type relates to generic or specific feedback page objec...
const CMD_SHOW
command constants
Generic feedback page object.
const PAGE_OBJECT_TYPE_GENERIC_FEEDBACK
type for generic feedback page objects
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
Specific feedback page object.
Specific feedback page GUI class.
ensurePageObjectExists($pageObjectType, $pageObjectId)
ensures an existing page object with giben type/id
const PAGE_OBJECT_TYPE_SPECIFIC_FEEDBACK
type for specific feedback page objects