71         $main_tpl = $DIC->ui()->mainTemplate();
    76         if (!$this->request->isset(
'hint_id') || !(
int) $this->request->raw(
'hint_id') || !$this->questionHint->load((
int) $this->request->raw(
'hint_id'))) {
    77             $main_tpl->setOnScreenMessage(
'failure', 
'invalid hint id given: ' . (
int) $this->request->raw(
'hint_id'), 
true);
    90             case self::PRESENTATION_MODE_AUTHOR:
    95             case self::PRESENTATION_MODE_PREVIEW:
   100             case self::PRESENTATION_MODE_REQUEST:
   106         $this->
ctrl->setParameter($pageObjectGUI, 
'hint_id', $this->questionHint->getId());
   108         $this->
ctrl->forwardCommand($pageObjectGUI);
   116         $this->
tabs->setBackTarget(
   117             $this->
lng->txt(
'tst_question_hints_back_to_hint_list'),
   122             $this->questionHint->getPageObjectType(),
   123             $this->questionHint->getId()
   126         $pageObjectGUI->setEnabledTabs(
false);
   128         $pageObjectGUI->setPresentationTitle(
   132         return $pageObjectGUI;
   140         $this->
tabs->setBackTarget(
   141             $this->
lng->txt(
'tst_question_hints_back_to_hint_list'),
   146             $this->questionHint->getPageObjectType(),
   147             $this->questionHint->getId()
   150         $pageObjectGUI->setEnabledTabs(
false);
   151         $pageObjectGUI->setEnableEditing(
false);
   152         $pageObjectGUI->setTemplateTargetVar(
'ADM_CONTENT');
   153         $pageObjectGUI->setTemplateOutput(
true);
   155         $pageObjectGUI->setPresentationTitle(
   159         return $pageObjectGUI;
   167         $this->
tabs->setBackTarget(
   168             $this->
lng->txt(
'tst_question_hints_back_to_hint_list'),
   173             $this->questionHint->getPageObjectType(),
   174             $this->questionHint->getId()
   178             $this->questionHint->getPageObjectType(),
   179             $this->questionHint->getId()
   181         $pageObjectGUI->setTemplateTargetVar(
'ADM_CONTENT');
   182         $pageObjectGUI->setTemplateOutput(
true);
   183         $pageObjectGUI->setEnabledTabs(
true);
   185         return $pageObjectGUI;
   207             case self::PRESENTATION_MODE_AUTHOR:
   208             case self::PRESENTATION_MODE_PREVIEW:
   209             case self::PRESENTATION_MODE_REQUEST:
   224         $pageObjectGUI->obj->addUpdateListener(
   228         return $pageObjectGUI;
   240             $pageObject->setParentId($this->questionOBJ->getId());
   241             $pageObject->setId($pageObjectId);
   242             $pageObject->createFromXML();
 ensurePageObjectExists($pageObjectType, $pageObjectId)
ensures an existing page object with giben type/id 
 
const PRESENTATION_MODE_AUTHOR
presentation mode for authoring 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
getPageObjectGUI($pageObjectType, $pageObjectId)
instantiates, initialises and returns a page object gui object 
 
static _exists(string $a_parent_type, int $a_id, string $a_lang="", bool $a_no_cache=false)
Checks whether page exists. 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
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 
 
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.