4 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionAbstractPageObjectCommandForwarder.php';
5 require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionHintsGUI.php';
53 parent::__construct($questionOBJ, $ctrl, $tabs, $lng);
57 if( !isset(
$_GET[
'hint_id']) || !(
int)
$_GET[
'hint_id'] || !$this->questionHint->load((
int)
$_GET[
'hint_id']) )
73 case self::PRESENTATION_MODE_AUTHOR:
78 case self::PRESENTATION_MODE_REQUEST:
84 $this->ctrl->setParameter($pageObjectGUI,
'hint_id', $this->questionHint->getId());
86 $this->ctrl->forwardCommand($pageObjectGUI);
97 $this->tabs->setBackTarget(
98 $this->lng->txt(
'tst_question_hints_back_to_hint_list'),
103 $this->questionHint->getPageObjectType(), $this->questionHint->getId()
106 $pageObjectGUI->setEnabledTabs(
false);
108 $pageObjectGUI->setPresentationTitle(
112 return $pageObjectGUI;
123 $this->tabs->setBackTarget(
124 $this->lng->txt(
'tst_question_hints_back_to_hint_list'),
129 $this->questionHint->getPageObjectType(), $this->questionHint->getId()
133 $this->questionHint->getPageObjectType(), $this->questionHint->getId()
136 $pageObjectGUI->setEnabledTabs(
true);
138 return $pageObjectGUI;
161 case self::PRESENTATION_MODE_AUTHOR:
162 case self::PRESENTATION_MODE_REQUEST:
179 include_once(
"./Modules/TestQuestionPool/classes/class.ilAssHintPageGUI.php");
182 return $pageObjectGUI;
192 include_once(
"./Modules/TestQuestionPool/classes/class.ilAssHintPage.php");
196 $pageObject->setParentId($this->questionOBJ->getId());
197 $pageObject->setId($pageObjectId);
198 $pageObject->createFromXML();
ensurePageObjectExists($pageObjectType, $pageObjectId)
ensures an existing page object with giben type/id
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...
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
static _exists($a_parent_type, $a_id, $a_lang="")
Checks whether page exists.
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.