4require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionAbstractPageObjectCommandForwarder.php';
5require_once
'Modules/TestQuestionPool/classes/class.ilAssQuestionHintsGUI.php';
62 if (!isset(
$_GET[
'hint_id']) || !(
int)
$_GET[
'hint_id'] || !$this->questionHint->load((
int)
$_GET[
'hint_id'])) {
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);
143 $pageObjectGUI->setEnableEditing(
false);
145 $pageObjectGUI->setPresentationTitle(
149 return $pageObjectGUI;
160 $this->tabs->setBackTarget(
161 $this->lng->txt(
'tst_question_hints_back_to_hint_list'),
166 $this->questionHint->getPageObjectType(),
167 $this->questionHint->getId()
171 $this->questionHint->getPageObjectType(),
172 $this->questionHint->getId()
175 $pageObjectGUI->setEnabledTabs(
true);
177 return $pageObjectGUI;
218 include_once(
"./Modules/TestQuestionPool/classes/class.ilAssHintPageGUI.php");
221 $pageObjectGUI->obj->addUpdateListener(
225 return $pageObjectGUI;
235 include_once(
"./Modules/TestQuestionPool/classes/class.ilAssHintPage.php");
238 $pageObject->setParentId($this->questionOBJ->getId());
239 $pageObject->setId($pageObjectId);
240 $pageObject->createFromXML();
An exception for terminatinating execution or to throw for unit testing.
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
const PRESENTATION_MODE_PREVIEW
presentation mode for authoring
buildPreviewPresentationPageObjectGUI()
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.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc