4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionAbstractPageObjectCommandForwarder.php';
5 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionHintsGUI.php';
58 parent::__construct($questionOBJ, $ctrl, $tabs, $lng);
62 if (!isset(
$_GET[
'hint_id']) || !(
int)
$_GET[
'hint_id'] || !$this->questionHint->load((
int)
$_GET[
'hint_id'])) {
76 case self::PRESENTATION_MODE_AUTHOR:
81 case self::PRESENTATION_MODE_PREVIEW:
86 case self::PRESENTATION_MODE_REQUEST:
92 $this->ctrl->setParameter($pageObjectGUI,
'hint_id', $this->questionHint->getId());
94 $this->ctrl->forwardCommand($pageObjectGUI);
105 $this->tabs->setBackTarget(
106 $this->lng->txt(
'tst_question_hints_back_to_hint_list'),
111 $this->questionHint->getPageObjectType(),
112 $this->questionHint->getId()
115 $pageObjectGUI->setEnabledTabs(
false);
117 $pageObjectGUI->setPresentationTitle(
121 return $pageObjectGUI;
132 $this->tabs->setBackTarget(
133 $this->lng->txt(
'tst_question_hints_back_to_hint_list'),
138 $this->questionHint->getPageObjectType(),
139 $this->questionHint->getId()
142 $pageObjectGUI->setEnabledTabs(
false);
144 $pageObjectGUI->setPresentationTitle(
148 return $pageObjectGUI;
159 $this->tabs->setBackTarget(
160 $this->lng->txt(
'tst_question_hints_back_to_hint_list'),
165 $this->questionHint->getPageObjectType(),
166 $this->questionHint->getId()
170 $this->questionHint->getPageObjectType(),
171 $this->questionHint->getId()
174 $pageObjectGUI->setEnabledTabs(
true);
176 return $pageObjectGUI;
198 case self::PRESENTATION_MODE_AUTHOR:
199 case self::PRESENTATION_MODE_PREVIEW:
200 case self::PRESENTATION_MODE_REQUEST:
217 include_once(
"./Modules/TestQuestionPool/classes/class.ilAssHintPageGUI.php");
219 $pageObjectGUI->obj->addUpdateListener(
223 return $pageObjectGUI;
233 include_once(
"./Modules/TestQuestionPool/classes/class.ilAssHintPage.php");
236 $pageObject->setParentId($this->questionOBJ->getId());
237 $pageObject->setId($pageObjectId);
238 $pageObject->createFromXML();
ensurePageObjectExists($pageObjectType, $pageObjectId)
ensures an existing page object with giben type/id
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
This class provides processing control methods.
const PRESENTATION_MODE_AUTHOR
presentation mode for authoring
Abstract basic class which is to be extended by the concrete assessment question type classes...
buildPreviewPresentationPageObjectGUI()
forwards the command to page object gui for author presentation
const PRESENTATION_MODE_PREVIEW
presentation mode for authoring
const CMD_SHOW_LIST
command constants
static getHintIndexLabel(ilLanguage $lng, $hintIndex)
Assessment hint page object.
getPageObjectGUI($pageObjectType, $pageObjectId)
instantiates, initialises and returns a page object gui object
Assessment hint page GUI class.
buildAuthorPresentationPageObjectGUI()
forwards the command to page object gui for author presentation
const PRESENTATION_MODE_REQUEST
presentation mode for requesting
setPresentationMode($presentationMode)
setter for presentation mode
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
const CMD_SHOW_LIST
command constants
getPresentationMode()
getter for presentation mode
buildRequestPresentationPageObjectGUI()
forwards the command to page object gui for author presentation
__construct(assQuestion $questionOBJ, ilCtrl $ctrl, ilTabsGUI $tabs, ilLanguage $lng)
Constructor.