369        $this->anythingRendered = 
true;
 
  397        include_once(
"Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
 
  399        $actions->setAsDropDown(
true, 
true);
 
  407                'ilTestQuestionAction',
 
  408                'tst_mark_question_action' 
  410            $actions->addSeparator();
 
  415                $this->
lng->txt(
'tst_revert_changes'),
 
  416                $this->getRevertChangesLinkTarget(),
 
  419                'ilTestQuestionAction ilTestRevertChangesAction',
 
  420                'tst_revert_changes_action' 
  424                $this->
lng->txt(
'tst_revert_changes'),
 
  428                'ilTestQuestionAction ilTestRevertChangesAction disabled',
 
  429                'tst_revert_changes_action' 
  435                $this->
lng->txt(
'discard_answer'),
 
  439                'ilTestQuestionAction ilTestDiscardSolutionAction',
 
  440                'tst_discard_solution_action' 
  444                $this->
lng->txt(
'discard_answer'),
 
  448                'ilTestQuestionAction ilTestDiscardSolutionAction disabled',
 
  449                'tst_discard_solution_action' 
  455                $this->
lng->txt(
'postpone_question'),
 
  456                $this->getSkipQuestionLinkTarget(),
 
  459                'ilTestQuestionAction',
 
  460                'tst_skip_question_action' 
  462        } elseif (self::SHOW_DISABLED_COMMANDS) {
 
  464                $this->
lng->txt(
'postpone_question'),
 
  468                'ilTestQuestionAction disabled',
 
  469                'tst_skip_question_action' 
  474            $actions->addSeparator();
 
  476                $this->
lng->txt(
'char_selector_btn_label'),
 
  480                'ilTestQuestionAction ilCharSelectorMenuToggle',
 
  481                'ilCharSelectorMenuToggleLink' 
  491                'ilTestMarkQuestionIcon' 
  496        include_once 
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
 
  498        $list->setSelectionHeaderClass(
'btn-primary');
 
  499        $list->setId(
'QuestionActions');
 
  500        $list->setListTitle($this->
lng->txt(
"actions"));
 
  502        $list->setGroupedList($actions);
 
  503        $tpl->setVariable(
'ACTION_MENU', $list->getHTML());
 
  551                'show_requested_question_hints' 
  568            return 'edit_answer';
 
  571        return 'answer_question';
 
  577            return 'submit_and_check';
 
  588            return 'submit_and_check';
 
  597            return 'button_request_next_question_hint';
 
  600        return 'button_request_question_hint';
 
  607            return $this->
lng->txt(
'tst_remove_mark');
 
  610        return $this->
lng->txt(
'tst_question_mark');
 
  617            return $this->
lng->txt(
'tst_question_marked');
 
  620        return$this->lng->txt(
'tst_question_not_marked');
 
  641        switch ($a_purpose) {
 
  644                    'tpl.tst_question_navigation.html',
 
  652                    'tpl.tst_question_actions.html',
 
  666        $tpl->setCurrentBlock(
'question_related_navigation');
 
  667        $tpl->parseCurrentBlock();
 
  675        $tpl->setCurrentBlock(
'buttons');
 
  676        $tpl->parseCurrentBlock();
 
  685        $tpl->setCurrentBlock(
"button_instance");
 
  686        $tpl->setVariable(
"BUTTON_INSTANCE", $button->render());
 
  687        $tpl->parseCurrentBlock();
 
  702        $button->setCommand($command);
 
  703        $button->setCaption($label);
 
  704        $button->setPrimary($primary);
 
  705        $button->addCSSClass(self::CSS_CLASS_SUBMIT_BUTTONS);
 
  719        $button->setUrl($href);
 
  720        $button->setCaption($label);
 
  734        $button->setId($htmlId);
 
  735        $button->addCSSClass($cssClass);
 
  736        $button->setCaption($label);
 
  750        $tpl->setCurrentBlock(
"submit_icon");
 
  751        $tpl->setVariable(
"SUBMIT_ICON_CMD", $command);
 
  752        $tpl->setVariable(
"SUBMIT_ICON_SRC", $iconSrc);
 
  753        $tpl->setVariable(
"SUBMIT_ICON_TEXT", $label);
 
  754        $tpl->setVariable(
"SUBMIT_ICON_CLASS", $cssClass);
 
  755        $tpl->parseCurrentBlock();
 
  764        $tpl->setCurrentBlock(
"actions_icon");
 
  765        $tpl->setVariable(
"ICON_SRC", $iconSrc);
 
  766        $tpl->setVariable(
"ICON_TEXT", $label);
 
  767        $tpl->setVariable(
"ICON_CLASS", $cssClass);
 
  768        $tpl->parseCurrentBlock();
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
special template class to simplify handling of ITX/PEAR
 
getActionsHTML()
Get the HTML of an actions menu below the title.
 
isForceInstantResponseEnabled()
 
setInstantFeedbackCommand($instantFeedbackCommand)
 
getEditSolutionButtonLabel()
 
setQuestionWorkedThrough($questionWorkedThrough)
 
getInstantFeedbackCommand()
 
getRequestHintButtonLabel()
 
const CSS_CLASS_SUBMIT_BUTTONS
 
isDiscardSolutionButtonEnabled()
 
setEditSolutionCommand($editSolutionCommand)
 
setDiscardSolutionButtonEnabled($discardSolutionButtonEnabled)
 
renderButtonInstance(ilTemplate $tpl, $button)
 
renderJsLinkedButton(ilTemplate $tpl, $htmlId, $label, $cssClass)
 
getSubmitSolutionButtonLabel()
 
getQuestionMarkActionLabel()
 
renderActionsIcon(ilTemplate $tpl, $iconSrc, $label, $cssClass)
 
setHintRequestsExist($hintRequestsExist)
 
isAnswerFreezingEnabled()
 
$forceInstantResponseEnabled
 
setQuestionMarkLinkTarget($questionMarkLinkTarget)
 
getTemplate($a_purpose='toolbar')
Get the template.
 
setSubmitSolutionCommand($submitSolutionCommand)
 
setRevertChangesLinkTarget($revertChangesLinkTarget)
 
setShowHintsCommand($showHintsCommand)
 
renderLinkButton(ilTemplate $tpl, $href, $label)
 
setRequestHintCommand($requestHintCommand)
 
renderIcon(ilTemplate $tpl, $command, $iconSrc, $label, $cssClass)
 
getRevertChangesLinkTarget()
 
getQuestionMarkIconLabel()
 
setAnswerFreezingEnabled($answerFreezingEnabled)
 
setQuestionMarked($questionMarked)
 
setCharSelectorEnabled($charSelectorEnabled)
 
renderSubmitButton(ilTemplate $tpl, $command, $label, $primary=false)
 
const SHOW_DISABLED_COMMANDS
 
getSubmitSolutionCommand()
 
setSkipQuestionLinkTarget($skipQuestionLinkTarget)
 
isQuestionWorkedThrough()
 
getSkipQuestionLinkTarget()
 
parseButtonsBlock(ilTemplate $tpl)
 
setForceInstantResponseEnabled($forceInstantResponseEnabled)
 
$discardSolutionButtonEnabled
 
getQuestionMarkIconSource()
 
parseNavigation(ilTemplate $tpl)
 
__construct(ilLanguage $lng)
 
getQuestionMarkLinkTarget()
 
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
 
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl