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'),
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'),
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',
686 $tpl->
setVariable(
"BUTTON_INSTANCE", $button->render());
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);
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
__construct(ilLanguage $lng)
renderSubmitButton(ilTemplate $tpl, $command, $label, $primary=false)
getEditSolutionButtonLabel()
isForceInstantResponseEnabled()
renderActionsIcon(ilTemplate $tpl, $iconSrc, $label, $cssClass)
getSkipQuestionLinkTarget()
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
isQuestionWorkedThrough()
getInstantFeedbackCommand()
setSubmitSolutionCommand($submitSolutionCommand)
setHintRequestsExist($hintRequestsExist)
renderIcon(ilTemplate $tpl, $command, $iconSrc, $label, $cssClass)
getRequestHintButtonLabel()
const CSS_CLASS_SUBMIT_BUTTONS
parseButtonsBlock(ilTemplate $tpl)
getRevertChangesLinkTarget()
getQuestionMarkIconSource()
setQuestionWorkedThrough($questionWorkedThrough)
setDiscardSolutionButtonEnabled($discardSolutionButtonEnabled)
setRevertChangesLinkTarget($revertChangesLinkTarget)
renderButtonInstance(ilTemplate $tpl, $button)
setVariable($variable, $value='')
Sets a variable value.
renderJsLinkedButton(ilTemplate $tpl, $htmlId, $label, $cssClass)
setInstantFeedbackCommand($instantFeedbackCommand)
setCharSelectorEnabled($charSelectorEnabled)
$forceInstantResponseEnabled
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const SHOW_DISABLED_COMMANDS
setSkipQuestionLinkTarget($skipQuestionLinkTarget)
isAnswerFreezingEnabled()
getSubmitSolutionButtonLabel()
setEditSolutionCommand($editSolutionCommand)
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
isDiscardSolutionButtonEnabled()
setForceInstantResponseEnabled($forceInstantResponseEnabled)
setShowHintsCommand($showHintsCommand)
getQuestionMarkLinkTarget()
getActionsHTML()
Get the HTML of an actions menu below the title.
getQuestionMarkIconLabel()
setAnswerFreezingEnabled($answerFreezingEnabled)
renderLinkButton(ilTemplate $tpl, $href, $label)
setQuestionMarkLinkTarget($questionMarkLinkTarget)
setQuestionMarked($questionMarked)
getTemplate($a_purpose='toolbar')
Get the template.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
getSubmitSolutionCommand()
$discardSolutionButtonEnabled
setRequestHintCommand($requestHintCommand)
getQuestionMarkActionLabel()
parseNavigation(ilTemplate $tpl)