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'),
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'),
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',
672 $tpl->
setVariable(
"BUTTON_INSTANCE", $button->render());
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);
__construct(ilLanguage $lng)
renderSubmitButton(ilTemplate $tpl, $command, $label, $primary=false)
if(isset($_REQUEST['delete'])) $list
getEditSolutionButtonLabel()
isForceInstantResponseEnabled()
renderActionsIcon(ilTemplate $tpl, $iconSrc, $label, $cssClass)
getSkipQuestionLinkTarget()
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)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setCharSelectorEnabled($charSelectorEnabled)
$forceInstantResponseEnabled
const SHOW_DISABLED_COMMANDS
special template class to simplify handling of ITX/PEAR
setSkipQuestionLinkTarget($skipQuestionLinkTarget)
isAnswerFreezingEnabled()
getSubmitSolutionButtonLabel()
setEditSolutionCommand($editSolutionCommand)
setCurrentBlock($part="DEFAULT")
Überladene Funktion, die sich hier lokal noch den aktuellen Block merkt.
User interface class for advanced drop-down selection lists.
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.
parseCurrentBlock($part="DEFAULT")
Überladene Funktion, die auf den aktuelle Block vorher noch ein replace ausführt public...
getSubmitSolutionCommand()
$discardSolutionButtonEnabled
setRequestHintCommand($requestHintCommand)
getQuestionMarkActionLabel()
parseNavigation(ilTemplate $tpl)