355 $this->anythingRendered =
true;
383 include_once(
"Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
385 $actions->setAsDropDown(
true,
true);
393 'ilTestQuestionAction',
394 'tst_mark_question_action'
396 $actions->addSeparator();
401 $this->lng->txt(
'tst_revert_changes'),
402 $this->getRevertChangesLinkTarget(),
405 'ilTestQuestionAction ilTestRevertChangesAction',
406 'tst_revert_changes_action'
410 $this->lng->txt(
'tst_revert_changes'),
414 'ilTestQuestionAction ilTestRevertChangesAction disabled',
415 'tst_revert_changes_action'
421 $this->lng->txt(
'discard_answer'),
425 'ilTestQuestionAction ilTestDiscardSolutionAction',
426 'tst_discard_solution_action'
430 $this->lng->txt(
'discard_answer'),
434 'ilTestQuestionAction ilTestDiscardSolutionAction disabled',
435 'tst_discard_solution_action'
441 $this->lng->txt(
'postpone_question'),
442 $this->getSkipQuestionLinkTarget(),
445 'ilTestQuestionAction',
446 'tst_skip_question_action'
448 } elseif (self::SHOW_DISABLED_COMMANDS) {
450 $this->lng->txt(
'postpone_question'),
454 'ilTestQuestionAction disabled',
455 'tst_skip_question_action'
460 $actions->addSeparator();
462 $this->lng->txt(
'char_selector_btn_label'),
466 'ilTestQuestionAction ilCharSelectorMenuToggle',
467 'ilCharSelectorMenuToggleLink'
477 'ilTestMarkQuestionIcon'
482 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
484 $list->setSelectionHeaderClass(
'btn-primary');
485 $list->setId(
'QuestionActions');
486 $list->setListTitle($this->lng->txt(
"actions"));
488 $list->setGroupedList($actions);
489 $tpl->setVariable(
'ACTION_MENU',
$list->getHTML());
537 'button_show_requested_question_hints'
554 return 'edit_answer';
557 return 'answer_question';
563 return 'submit_and_check';
574 return 'submit_and_check';
583 return 'button_request_next_question_hint';
586 return 'button_request_question_hint';
593 return $this->lng->txt(
'tst_remove_mark');
596 return $this->lng->txt(
'tst_question_mark');
603 return $this->lng->txt(
'tst_question_marked');
606 return$this->lng->txt(
'tst_question_not_marked');
627 switch ($a_purpose) {
630 'tpl.tst_question_navigation.html',
638 'tpl.tst_question_actions.html',
652 $tpl->setCurrentBlock(
'question_related_navigation');
653 $tpl->parseCurrentBlock();
661 $tpl->setCurrentBlock(
'buttons');
662 $tpl->parseCurrentBlock();
671 $tpl->setCurrentBlock(
"button_instance");
672 $tpl->setVariable(
"BUTTON_INSTANCE", $button->render());
673 $tpl->parseCurrentBlock();
688 $button->setCommand($command);
689 $button->setCaption($label);
690 $button->setPrimary($primary);
691 $button->addCSSClass(self::CSS_CLASS_SUBMIT_BUTTONS);
705 $button->setUrl($href);
706 $button->setCaption($label);
720 $button->setId($htmlId);
721 $button->addCSSClass($cssClass);
722 $button->setCaption($label);
736 $tpl->setCurrentBlock(
"submit_icon");
737 $tpl->setVariable(
"SUBMIT_ICON_CMD", $command);
738 $tpl->setVariable(
"SUBMIT_ICON_SRC", $iconSrc);
739 $tpl->setVariable(
"SUBMIT_ICON_TEXT", $label);
740 $tpl->setVariable(
"SUBMIT_ICON_CLASS", $cssClass);
741 $tpl->parseCurrentBlock();
750 $tpl->setCurrentBlock(
"actions_icon");
751 $tpl->setVariable(
"ICON_SRC", $iconSrc);
752 $tpl->setVariable(
"ICON_TEXT", $label);
753 $tpl->setVariable(
"ICON_CLASS", $cssClass);
754 $tpl->parseCurrentBlock();
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
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($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
if(isset($_REQUEST['delete'])) $list