4require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionAbstractPageObjectCommandForwarder.php';
5require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionHintsGUI.php';
57 if( !isset(
$_GET[
'hint_id']) || !(
int)
$_GET[
'hint_id'] || !$this->questionHint->load((
int)
$_GET[
'hint_id']) )
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;
179 include_once(
"./Modules/TestQuestionPool/classes/class.ilAssHintPageGUI.php");
181 $pageObjectGUI->obj->addUpdateListener(
185 return $pageObjectGUI;
195 include_once(
"./Modules/TestQuestionPool/classes/class.ilAssHintPage.php");
199 $pageObject->setParentId($this->questionOBJ->getId());
200 $pageObject->setId($pageObjectId);
201 $pageObject->createFromXML();
Abstract basic class which is to be extended by the concrete assessment question type classes.
Assessment hint page GUI class.
Assessment hint page object.
getPageObjectGUI($pageObjectType, $pageObjectId)
instantiates, initialises and returns a page object gui object
const PRESENTATION_MODE_AUTHOR
presentation mode for authoring
getPresentationMode()
getter for presentation mode
const PRESENTATION_MODE_REQUEST
presentation mode for requesting
setPresentationMode($presentationMode)
setter for presentation mode
buildRequestPresentationPageObjectGUI()
forwards the command to page object gui for author presentation
buildAuthorPresentationPageObjectGUI()
forwards the command to page object gui for author presentation
ensurePageObjectExists($pageObjectType, $pageObjectId)
ensures an existing page object with giben type/id
__construct(assQuestion $questionOBJ, ilCtrl $ctrl, ilTabsGUI $tabs, ilLanguage $lng)
Constructor.
const CMD_SHOW_LIST
command constants
static getHintIndexLabel(ilLanguage $lng, $hintIndex)
const CMD_SHOW_LIST
command constants
This class provides processing control methods.
static _exists($a_parent_type, $a_id, $a_lang="", $a_no_cache=false)
Checks whether page exists.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.