355 $this->anythingRendered =
true;
383 include_once(
"Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
385 $actions->setAsDropDown(
true,
true);
390 '',
'',
'ilTestQuestionAction',
'tst_mark_question_action');
391 $actions->addSeparator();
397 '',
'',
'ilTestQuestionAction ilTestRevertChangesAction',
'tst_revert_changes_action');
400 $actions->addEntry($this->lng->txt(
'tst_revert_changes'),
'#',
401 '',
'',
'ilTestQuestionAction ilTestRevertChangesAction disabled',
'tst_revert_changes_action');
406 $actions->addEntry($this->lng->txt(
'discard_answer'),
'#',
407 '',
'',
'ilTestQuestionAction ilTestDiscardSolutionAction',
'tst_discard_solution_action');
411 $actions->addEntry($this->lng->txt(
'discard_answer'),
'#',
412 '',
'',
'ilTestQuestionAction ilTestDiscardSolutionAction disabled',
'tst_discard_solution_action');
418 '',
'',
'ilTestQuestionAction',
'tst_skip_question_action');
420 elseif( self::SHOW_DISABLED_COMMANDS )
422 $actions->addEntry($this->lng->txt(
'postpone_question'),
'#',
423 '',
'',
'ilTestQuestionAction disabled',
'tst_skip_question_action');
428 $actions->addSeparator();
429 $actions->addEntry($this->lng->txt(
'char_selector_btn_label'),
'#',
430 '',
'',
'ilTestQuestionAction ilCharSelectorMenuToggle',
'ilCharSelectorMenuToggleLink');
442 include_once
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
444 $list->setSelectionHeaderClass(
'btn-primary');
445 $list->setId(
'QuestionActions');
446 $list->setListTitle($this->lng->txt(
"actions"));
448 $list->setGroupedList($actions);
449 $tpl->setVariable(
'ACTION_MENU',$list->getHTML());
512 return 'edit_answer';
515 return 'answer_question';
522 return 'submit_and_check';
534 return 'submit_and_check';
544 return 'button_request_next_question_hint';
547 return 'button_request_question_hint';
555 return $this->lng->txt(
'tst_remove_mark');
558 return $this->lng->txt(
'tst_question_mark');
566 return $this->lng->txt(
'tst_question_marked');
569 return$this->lng->txt(
'tst_question_not_marked');
595 'tpl.tst_question_navigation.html',
true,
true,
'Modules/Test' 600 'tpl.tst_question_actions.html',
true,
true,
'Modules/Test' 631 $tpl->
setVariable(
"BUTTON_INSTANCE", $button->render());
647 $button->setCommand($command);
648 $button->setCaption($label);
649 $button->setPrimary($primary);
650 $button->addCSSClass(self::CSS_CLASS_SUBMIT_BUTTONS);
664 $button->setUrl($href);
665 $button->setCaption($label);
679 $button->setId($htmlId);
680 $button->addCSSClass($cssClass);
681 $button->setCaption($label);
__construct(ilLanguage $lng)
renderSubmitButton(ilTemplate $tpl, $command, $label, $primary=false)
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)