ILIAS  release_7 Revision v7.30-3-g800a261c036
ilTestQuestionNavigationGUI Class Reference
+ Collaboration diagram for ilTestQuestionNavigationGUI:

Public Member Functions

 __construct (ilLanguage $lng)
 
 getEditSolutionCommand ()
 
 setEditSolutionCommand ($editSolutionCommand)
 
 isQuestionWorkedThrough ()
 
 setQuestionWorkedThrough ($questionWorkedThrough)
 
 getSubmitSolutionCommand ()
 
 setSubmitSolutionCommand ($submitSolutionCommand)
 
 getRevertChangesLinkTarget ()
 
 setRevertChangesLinkTarget ($revertChangesLinkTarget)
 
 isDiscardSolutionButtonEnabled ()
 
 setDiscardSolutionButtonEnabled ($discardSolutionButtonEnabled)
 
 getSkipQuestionLinkTarget ()
 
 setSkipQuestionLinkTarget ($skipQuestionLinkTarget)
 
 getInstantFeedbackCommand ()
 
 setInstantFeedbackCommand ($instantFeedbackCommand)
 
 isAnswerFreezingEnabled ()
 
 isForceInstantResponseEnabled ()
 
 setForceInstantResponseEnabled ($forceInstantResponseEnabled)
 
 setAnswerFreezingEnabled ($answerFreezingEnabled)
 
 getRequestHintCommand ()
 
 setRequestHintCommand ($requestHintCommand)
 
 getShowHintsCommand ()
 
 setShowHintsCommand ($showHintsCommand)
 
 hintRequestsExist ()
 
 setHintRequestsExist ($hintRequestsExist)
 
 getQuestionMarkLinkTarget ()
 
 setQuestionMarkLinkTarget ($questionMarkLinkTarget)
 
 isQuestionMarked ()
 
 setQuestionMarked ($questionMarked)
 
 isAnythingRendered ()
 
 setAnythingRendered ()
 
 isCharSelectorEnabled ()
 
 setCharSelectorEnabled ($charSelectorEnabled)
 
 getActionsHTML ()
 Get the HTML of an actions menu below the title. More...
 
 getHTML ()
 

Data Fields

const SHOW_DISABLED_COMMANDS = false
 
const CSS_CLASS_SUBMIT_BUTTONS = 'ilc_qsubmit_Submit'
 

Protected Attributes

 $lng
 

Private Member Functions

 getEditSolutionButtonLabel ()
 
 getSubmitSolutionButtonLabel ()
 
 getCheckButtonLabel ()
 
 getRequestHintButtonLabel ()
 
 getQuestionMarkActionLabel ()
 
 getQuestionMarkIconLabel ()
 
 getQuestionMarkIconSource ()
 
 getTemplate ($a_purpose='toolbar')
 Get the template. More...
 
 parseNavigation (ilTemplate $tpl)
 
 parseButtonsBlock (ilTemplate $tpl)
 
 renderButtonInstance (ilTemplate $tpl, $button)
 
 renderSubmitButton (ilTemplate $tpl, $command, $label, $primary=false)
 
 renderLinkButton (ilTemplate $tpl, $href, $label)
 
 renderJsLinkedButton (ilTemplate $tpl, $htmlId, $label, $cssClass)
 
 renderIcon (ilTemplate $tpl, $command, $iconSrc, $label, $cssClass)
 
 renderActionsIcon (ilTemplate $tpl, $iconSrc, $label, $cssClass)
 

Private Attributes

 $editSolutionCommand = ''
 
 $questionWorkedThrough = false
 
 $submitSolutionCommand = ''
 
 $revertChangesLinkTarget = ''
 
 $discardSolutionButtonEnabled = false
 
 $skipQuestionLinkTarget = ''
 
 $instantFeedbackCommand = ''
 
 $answerFreezingEnabled = false
 
 $forceInstantResponseEnabled = false
 
 $requestHintCommand = ''
 
 $showHintsCommand = ''
 
 $hintRequestsExist = false
 
 $questionMarkLinkTarget = ''
 
 $questionMarked = false
 
 $charSelectorEnabled = false
 
 $anythingRendered = false
 

Detailed Description

Definition at line 11 of file class.ilTestQuestionNavigationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestQuestionNavigationGUI::__construct ( ilLanguage  $lng)
Parameters
ilLanguage$lng

Definition at line 109 of file class.ilTestQuestionNavigationGUI.php.

References $lng.

Member Function Documentation

◆ getActionsHTML()

ilTestQuestionNavigationGUI::getActionsHTML ( )

Get the HTML of an actions menu below the title.

Returns
string

Definition at line 379 of file class.ilTestQuestionNavigationGUI.php.

380 {
381 $tpl = $this->getTemplate('actions');
382
383 include_once("Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
384 $actions = new ilGroupedListGUI();
385 $actions->setAsDropDown(true, true);
386
387 if ($this->getQuestionMarkLinkTarget()) {
388 $actions->addEntry(
391 '',
392 '',
393 'ilTestQuestionAction',
394 'tst_mark_question_action'
395 );
396 $actions->addSeparator();
397 }
398
399 if ($this->getRevertChangesLinkTarget()) {
400 $actions->addEntry(
401 $this->lng->txt('tst_revert_changes'),
402 $this->getRevertChangesLinkTarget(),
403 '',
404 '',
405 'ilTestQuestionAction ilTestRevertChangesAction',
406 'tst_revert_changes_action'
407 );
408 } else {
409 $actions->addEntry(
410 $this->lng->txt('tst_revert_changes'),
411 '#',
412 '',
413 '',
414 'ilTestQuestionAction ilTestRevertChangesAction disabled',
415 'tst_revert_changes_action'
416 );
417 }
418
419 if ($this->isDiscardSolutionButtonEnabled()) {
420 $actions->addEntry(
421 $this->lng->txt('discard_answer'),
422 '#',
423 '',
424 '',
425 'ilTestQuestionAction ilTestDiscardSolutionAction',
426 'tst_discard_solution_action'
427 );
428 } else {
429 $actions->addEntry(
430 $this->lng->txt('discard_answer'),
431 '#',
432 '',
433 '',
434 'ilTestQuestionAction ilTestDiscardSolutionAction disabled',
435 'tst_discard_solution_action'
436 );
437 }
438
439 if ($this->getSkipQuestionLinkTarget()) {
440 $actions->addEntry(
441 $this->lng->txt('postpone_question'),
442 $this->getSkipQuestionLinkTarget(),
443 '',
444 '',
445 'ilTestQuestionAction',
446 'tst_skip_question_action'
447 );
448 } elseif (self::SHOW_DISABLED_COMMANDS) {
449 $actions->addEntry(
450 $this->lng->txt('postpone_question'),
451 '#',
452 '',
453 '',
454 'ilTestQuestionAction disabled',
455 'tst_skip_question_action'
456 );
457 }
458
459 if ($this->isCharSelectorEnabled()) {
460 $actions->addSeparator();
461 $actions->addEntry(
462 $this->lng->txt('char_selector_btn_label'),
463 '#',
464 '',
465 '',
466 'ilTestQuestionAction ilCharSelectorMenuToggle',
467 'ilCharSelectorMenuToggleLink'
468 );
469 }
470
471 // render the mark icon
472 if ($this->getQuestionMarkLinkTarget()) {
473 $this->renderActionsIcon(
474 $tpl,
477 'ilTestMarkQuestionIcon'
478 );
479 }
480
481 // render the action menu
482 include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
483 $list = new ilAdvancedSelectionListGUI();
484 $list->setSelectionHeaderClass('btn-primary');
485 $list->setId('QuestionActions');
486 $list->setListTitle($this->lng->txt("actions"));
487 $list->setStyle(1);
488 $list->setGroupedList($actions);
489 $tpl->setVariable('ACTION_MENU', $list->getHTML());
490
491 return $tpl->get();
492 }
User interface class for advanced drop-down selection lists.
Grouped list GUI class.
renderActionsIcon(ilTemplate $tpl, $iconSrc, $label, $cssClass)
getTemplate($a_purpose='toolbar')
Get the template.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Definition: latex.php:41

References $tpl, getQuestionMarkActionLabel(), getQuestionMarkIconLabel(), getQuestionMarkIconSource(), getQuestionMarkLinkTarget(), getRevertChangesLinkTarget(), getSkipQuestionLinkTarget(), getTemplate(), isCharSelectorEnabled(), isDiscardSolutionButtonEnabled(), and renderActionsIcon().

+ Here is the call graph for this function:

◆ getCheckButtonLabel()

ilTestQuestionNavigationGUI::getCheckButtonLabel ( )
private

Definition at line 571 of file class.ilTestQuestionNavigationGUI.php.

572 {
573 if ($this->isAnswerFreezingEnabled()) {
574 return 'submit_and_check';
575 }
576
577 return 'check';
578 }

References isAnswerFreezingEnabled().

Referenced by getHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEditSolutionButtonLabel()

ilTestQuestionNavigationGUI::getEditSolutionButtonLabel ( )
private

Definition at line 551 of file class.ilTestQuestionNavigationGUI.php.

552 {
553 if ($this->isQuestionWorkedThrough()) {
554 return 'edit_answer';
555 }
556
557 return 'answer_question';
558 }

References isQuestionWorkedThrough().

Referenced by getHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getEditSolutionCommand()

ilTestQuestionNavigationGUI::getEditSolutionCommand ( )
Returns
string

Definition at line 117 of file class.ilTestQuestionNavigationGUI.php.

References $editSolutionCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getHTML()

ilTestQuestionNavigationGUI::getHTML ( )
Returns
string

Definition at line 499 of file class.ilTestQuestionNavigationGUI.php.

500 {
501 // fau: testNav - add parameter for toolbar template purpose
502 $tpl = $this->getTemplate('toolbar');
503 // fau.
504 if ($this->getEditSolutionCommand()) {
505 $this->renderSubmitButton(
506 $tpl,
507 $this->getEditSolutionCommand(),
509 );
510 }
511
512 // fau: testNav - don't show the standard submit button.
513 // fau: testNav - discard answer is moved to the actions menu.
514 // fau: testNav - skip question (postpone) is moved to the actions menu.
515
516 if ($this->getInstantFeedbackCommand()) {
517 $this->renderSubmitButton(
518 $tpl,
520 $this->getCheckButtonLabel(),
522 );
523 }
524
525 if ($this->getRequestHintCommand()) {
526 $this->renderSubmitButton(
527 $tpl,
528 $this->getRequestHintCommand(),
530 );
531 }
532
533 if ($this->getShowHintsCommand()) {
534 $this->renderSubmitButton(
535 $tpl,
536 $this->getShowHintsCommand(),
537 'button_show_requested_question_hints'
538 );
539 }
540
541 // fau: testNav - question mark is moved to the actions menu.
542 // fau: testNav - char selector is moved to the actions menu.
543
544 if ($this->isAnythingRendered()) {
545 $this->parseNavigation($tpl);
546 }
547
548 return $tpl->get();
549 }
renderSubmitButton(ilTemplate $tpl, $command, $label, $primary=false)

References $tpl, getCheckButtonLabel(), getEditSolutionButtonLabel(), getEditSolutionCommand(), getInstantFeedbackCommand(), getRequestHintButtonLabel(), getRequestHintCommand(), getShowHintsCommand(), getTemplate(), isAnythingRendered(), isForceInstantResponseEnabled(), parseNavigation(), and renderSubmitButton().

+ Here is the call graph for this function:

◆ getInstantFeedbackCommand()

ilTestQuestionNavigationGUI::getInstantFeedbackCommand ( )
Returns
string

Definition at line 215 of file class.ilTestQuestionNavigationGUI.php.

References $instantFeedbackCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getQuestionMarkActionLabel()

ilTestQuestionNavigationGUI::getQuestionMarkActionLabel ( )
private

Definition at line 590 of file class.ilTestQuestionNavigationGUI.php.

591 {
592 if ($this->isQuestionMarked()) {
593 return $this->lng->txt('tst_remove_mark');
594 }
595
596 return $this->lng->txt('tst_question_mark');
597 }

References isQuestionMarked().

Referenced by getActionsHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionMarkIconLabel()

ilTestQuestionNavigationGUI::getQuestionMarkIconLabel ( )
private

Definition at line 600 of file class.ilTestQuestionNavigationGUI.php.

601 {
602 if ($this->isQuestionMarked()) {
603 return $this->lng->txt('tst_question_marked');
604 }
605
606 return$this->lng->txt('tst_question_not_marked');
607 }

References isQuestionMarked().

Referenced by getActionsHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionMarkIconSource()

ilTestQuestionNavigationGUI::getQuestionMarkIconSource ( )
private

Definition at line 610 of file class.ilTestQuestionNavigationGUI.php.

611 {
612 if ($this->isQuestionMarked()) {
613 return ilUtil::getImagePath('marked.svg');
614 }
615
616 return ilUtil::getImagePath('marked_.svg');
617 }
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)

References ilUtil\getImagePath(), and isQuestionMarked().

Referenced by getActionsHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getQuestionMarkLinkTarget()

ilTestQuestionNavigationGUI::getQuestionMarkLinkTarget ( )
Returns
string

Definition at line 312 of file class.ilTestQuestionNavigationGUI.php.

References $questionMarkLinkTarget.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ getRequestHintButtonLabel()

ilTestQuestionNavigationGUI::getRequestHintButtonLabel ( )
private

Definition at line 580 of file class.ilTestQuestionNavigationGUI.php.

581 {
582 if ($this->hintRequestsExist()) {
583 return 'button_request_next_question_hint';
584 }
585
586 return 'button_request_question_hint';
587 }

References hintRequestsExist().

Referenced by getHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getRequestHintCommand()

ilTestQuestionNavigationGUI::getRequestHintCommand ( )
Returns
string

Definition at line 263 of file class.ilTestQuestionNavigationGUI.php.

References $requestHintCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getRevertChangesLinkTarget()

ilTestQuestionNavigationGUI::getRevertChangesLinkTarget ( )
Returns
string

Definition at line 166 of file class.ilTestQuestionNavigationGUI.php.

References $revertChangesLinkTarget.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ getShowHintsCommand()

ilTestQuestionNavigationGUI::getShowHintsCommand ( )
Returns
string

Definition at line 279 of file class.ilTestQuestionNavigationGUI.php.

References $showHintsCommand.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ getSkipQuestionLinkTarget()

ilTestQuestionNavigationGUI::getSkipQuestionLinkTarget ( )
Returns
string

Definition at line 199 of file class.ilTestQuestionNavigationGUI.php.

References $skipQuestionLinkTarget.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ getSubmitSolutionButtonLabel()

ilTestQuestionNavigationGUI::getSubmitSolutionButtonLabel ( )
private

Definition at line 560 of file class.ilTestQuestionNavigationGUI.php.

561 {
562 if ($this->isForceInstantResponseEnabled()) {
563 return 'submit_and_check';
564 }
565
566 // fau: testNav - rename the submit button to simply "Save"
567 return 'save';
568 // fau.
569 }

References isForceInstantResponseEnabled().

+ Here is the call graph for this function:

◆ getSubmitSolutionCommand()

ilTestQuestionNavigationGUI::getSubmitSolutionCommand ( )

◆ getTemplate()

ilTestQuestionNavigationGUI::getTemplate (   $a_purpose = 'toolbar')
private

Get the template.

Parameters
string$a_purpose('toolbar' | 'actions')
Returns
ilTemplate

Definition at line 625 of file class.ilTestQuestionNavigationGUI.php.

626 {
627 switch ($a_purpose) {
628 case 'toolbar':
629 return new ilTemplate(
630 'tpl.tst_question_navigation.html',
631 true,
632 true,
633 'Modules/Test'
634 );
635
636 case 'actions':
637 return new ilTemplate(
638 'tpl.tst_question_actions.html',
639 true,
640 true,
641 'Modules/Test'
642 );
643 }
644 }
special template class to simplify handling of ITX/PEAR

Referenced by getActionsHTML(), and getHTML().

+ Here is the caller graph for this function:

◆ hintRequestsExist()

ilTestQuestionNavigationGUI::hintRequestsExist ( )
Returns
boolean

Definition at line 295 of file class.ilTestQuestionNavigationGUI.php.

References $hintRequestsExist.

Referenced by getRequestHintButtonLabel(), and setHintRequestsExist().

+ Here is the caller graph for this function:

◆ isAnswerFreezingEnabled()

ilTestQuestionNavigationGUI::isAnswerFreezingEnabled ( )
Returns
boolean

Definition at line 231 of file class.ilTestQuestionNavigationGUI.php.

References $answerFreezingEnabled.

Referenced by getCheckButtonLabel().

+ Here is the caller graph for this function:

◆ isAnythingRendered()

ilTestQuestionNavigationGUI::isAnythingRendered ( )
Returns
boolean

Definition at line 345 of file class.ilTestQuestionNavigationGUI.php.

References $anythingRendered.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ isCharSelectorEnabled()

ilTestQuestionNavigationGUI::isCharSelectorEnabled ( )
Returns
boolean

Definition at line 361 of file class.ilTestQuestionNavigationGUI.php.

References $charSelectorEnabled.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ isDiscardSolutionButtonEnabled()

ilTestQuestionNavigationGUI::isDiscardSolutionButtonEnabled ( )
Returns
bool

Definition at line 183 of file class.ilTestQuestionNavigationGUI.php.

References $discardSolutionButtonEnabled.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ isForceInstantResponseEnabled()

ilTestQuestionNavigationGUI::isForceInstantResponseEnabled ( )
Returns
boolean

Definition at line 239 of file class.ilTestQuestionNavigationGUI.php.

References $forceInstantResponseEnabled.

Referenced by getHTML(), and getSubmitSolutionButtonLabel().

+ Here is the caller graph for this function:

◆ isQuestionMarked()

ilTestQuestionNavigationGUI::isQuestionMarked ( )
Returns
boolean

Definition at line 329 of file class.ilTestQuestionNavigationGUI.php.

References $questionMarked.

Referenced by getQuestionMarkActionLabel(), getQuestionMarkIconLabel(), and getQuestionMarkIconSource().

+ Here is the caller graph for this function:

◆ isQuestionWorkedThrough()

ilTestQuestionNavigationGUI::isQuestionWorkedThrough ( )
Returns
boolean

Definition at line 133 of file class.ilTestQuestionNavigationGUI.php.

References $questionWorkedThrough.

Referenced by getEditSolutionButtonLabel().

+ Here is the caller graph for this function:

◆ parseButtonsBlock()

ilTestQuestionNavigationGUI::parseButtonsBlock ( ilTemplate  $tpl)
private
Parameters
ilTemplate$tpl

Definition at line 659 of file class.ilTestQuestionNavigationGUI.php.

660 {
661 $tpl->setCurrentBlock('buttons');
662 $tpl->parseCurrentBlock();
663 }

References $tpl.

Referenced by renderButtonInstance(), and renderIcon().

+ Here is the caller graph for this function:

◆ parseNavigation()

ilTestQuestionNavigationGUI::parseNavigation ( ilTemplate  $tpl)
private
Parameters
ilTemplate$tpl

Definition at line 650 of file class.ilTestQuestionNavigationGUI.php.

651 {
652 $tpl->setCurrentBlock('question_related_navigation');
653 $tpl->parseCurrentBlock();
654 }

References $tpl.

Referenced by getHTML().

+ Here is the caller graph for this function:

◆ renderActionsIcon()

ilTestQuestionNavigationGUI::renderActionsIcon ( ilTemplate  $tpl,
  $iconSrc,
  $label,
  $cssClass 
)
private

Definition at line 748 of file class.ilTestQuestionNavigationGUI.php.

749 {
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();
755 }

References $tpl.

Referenced by getActionsHTML().

+ Here is the caller graph for this function:

◆ renderButtonInstance()

ilTestQuestionNavigationGUI::renderButtonInstance ( ilTemplate  $tpl,
  $button 
)
private
Parameters
ilTemplate$tpl
$button

Definition at line 669 of file class.ilTestQuestionNavigationGUI.php.

670 {
671 $tpl->setCurrentBlock("button_instance");
672 $tpl->setVariable("BUTTON_INSTANCE", $button->render());
673 $tpl->parseCurrentBlock();
674
675 $this->parseButtonsBlock($tpl);
676 $this->setAnythingRendered();
677 }

References $tpl, parseButtonsBlock(), and setAnythingRendered().

Referenced by renderJsLinkedButton(), renderLinkButton(), and renderSubmitButton().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ renderIcon()

ilTestQuestionNavigationGUI::renderIcon ( ilTemplate  $tpl,
  $command,
  $iconSrc,
  $label,
  $cssClass 
)
private
Parameters
ilTemplate$tpl
$command
$iconSrc
$label
$cssClass

Definition at line 734 of file class.ilTestQuestionNavigationGUI.php.

735 {
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();
742
743 $this->parseButtonsBlock($tpl);
744 $this->setAnythingRendered();
745 }

References $tpl, parseButtonsBlock(), and setAnythingRendered().

+ Here is the call graph for this function:

◆ renderJsLinkedButton()

ilTestQuestionNavigationGUI::renderJsLinkedButton ( ilTemplate  $tpl,
  $htmlId,
  $label,
  $cssClass 
)
private
Parameters
ilTemplate$tpl
$htmlId
$label
$cssClass

Definition at line 717 of file class.ilTestQuestionNavigationGUI.php.

718 {
719 $button = ilLinkButton::getInstance();
720 $button->setId($htmlId);
721 $button->addCSSClass($cssClass);
722 $button->setCaption($label);
723
724 $this->renderButtonInstance($tpl, $button);
725 }
static getInstance()
Factory.

References ilLinkButton\getInstance(), and renderButtonInstance().

+ Here is the call graph for this function:

◆ renderLinkButton()

ilTestQuestionNavigationGUI::renderLinkButton ( ilTemplate  $tpl,
  $href,
  $label 
)
private
Parameters
ilTemplate$tpl
$htmlId
$label
$cssClass

Definition at line 702 of file class.ilTestQuestionNavigationGUI.php.

703 {
704 $button = ilLinkButton::getInstance();
705 $button->setUrl($href);
706 $button->setCaption($label);
707
708 $this->renderButtonInstance($tpl, $button);
709 }

References ilLinkButton\getInstance(), and renderButtonInstance().

+ Here is the call graph for this function:

◆ renderSubmitButton()

ilTestQuestionNavigationGUI::renderSubmitButton ( ilTemplate  $tpl,
  $command,
  $label,
  $primary = false 
)
private
Parameters
ilTemplate$tpl
$command
$label
bool | false$primary

Definition at line 685 of file class.ilTestQuestionNavigationGUI.php.

686 {
687 $button = ilSubmitButton::getInstance();
688 $button->setCommand($command);
689 $button->setCaption($label);
690 $button->setPrimary($primary);
691 $button->addCSSClass(self::CSS_CLASS_SUBMIT_BUTTONS);
692
693 $this->renderButtonInstance($tpl, $button);
694 }
static getInstance()
Factory.

References ilSubmitButton\getInstance(), and renderButtonInstance().

Referenced by getHTML().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAnswerFreezingEnabled()

ilTestQuestionNavigationGUI::setAnswerFreezingEnabled (   $answerFreezingEnabled)
Parameters
boolean$answerFreezingEnabled

Definition at line 255 of file class.ilTestQuestionNavigationGUI.php.

256 {
257 $this->answerFreezingEnabled = $answerFreezingEnabled;
258 }

References $answerFreezingEnabled.

◆ setAnythingRendered()

ilTestQuestionNavigationGUI::setAnythingRendered ( )
Parameters
boolean$buttonRendered

Definition at line 353 of file class.ilTestQuestionNavigationGUI.php.

354 {
355 $this->anythingRendered = true;
356 }

Referenced by renderButtonInstance(), and renderIcon().

+ Here is the caller graph for this function:

◆ setCharSelectorEnabled()

ilTestQuestionNavigationGUI::setCharSelectorEnabled (   $charSelectorEnabled)
Parameters
boolean$charSelectorEnabled

Definition at line 369 of file class.ilTestQuestionNavigationGUI.php.

370 {
371 $this->charSelectorEnabled = $charSelectorEnabled;
372 }

References $charSelectorEnabled.

◆ setDiscardSolutionButtonEnabled()

ilTestQuestionNavigationGUI::setDiscardSolutionButtonEnabled (   $discardSolutionButtonEnabled)
Parameters
bool$discardSolutionButtonEnabled

Definition at line 191 of file class.ilTestQuestionNavigationGUI.php.

192 {
193 $this->discardSolutionButtonEnabled = $discardSolutionButtonEnabled;
194 }

References $discardSolutionButtonEnabled.

◆ setEditSolutionCommand()

ilTestQuestionNavigationGUI::setEditSolutionCommand (   $editSolutionCommand)
Parameters
string$editSolutionCommand

Definition at line 125 of file class.ilTestQuestionNavigationGUI.php.

126 {
127 $this->editSolutionCommand = $editSolutionCommand;
128 }

References $editSolutionCommand.

◆ setForceInstantResponseEnabled()

ilTestQuestionNavigationGUI::setForceInstantResponseEnabled (   $forceInstantResponseEnabled)
Parameters
boolean$forceInstantResponseEnabled

Definition at line 247 of file class.ilTestQuestionNavigationGUI.php.

248 {
249 $this->forceInstantResponseEnabled = $forceInstantResponseEnabled;
250 }

References $forceInstantResponseEnabled.

◆ setHintRequestsExist()

ilTestQuestionNavigationGUI::setHintRequestsExist (   $hintRequestsExist)
Parameters
boolean$hintRequestsExist

Definition at line 303 of file class.ilTestQuestionNavigationGUI.php.

304 {
306 }

References $hintRequestsExist, and hintRequestsExist().

+ Here is the call graph for this function:

◆ setInstantFeedbackCommand()

ilTestQuestionNavigationGUI::setInstantFeedbackCommand (   $instantFeedbackCommand)
Parameters
string$instantFeedbackCommand

Definition at line 223 of file class.ilTestQuestionNavigationGUI.php.

224 {
225 $this->instantFeedbackCommand = $instantFeedbackCommand;
226 }

References $instantFeedbackCommand.

◆ setQuestionMarked()

ilTestQuestionNavigationGUI::setQuestionMarked (   $questionMarked)
Parameters
boolean$questionMarked

Definition at line 337 of file class.ilTestQuestionNavigationGUI.php.

338 {
339 $this->questionMarked = $questionMarked;
340 }

References $questionMarked.

◆ setQuestionMarkLinkTarget()

ilTestQuestionNavigationGUI::setQuestionMarkLinkTarget (   $questionMarkLinkTarget)
Parameters
string$questionMarkLinkTarget

Definition at line 320 of file class.ilTestQuestionNavigationGUI.php.

321 {
322 $this->questionMarkLinkTarget = $questionMarkLinkTarget;
323 }

References $questionMarkLinkTarget.

◆ setQuestionWorkedThrough()

ilTestQuestionNavigationGUI::setQuestionWorkedThrough (   $questionWorkedThrough)
Parameters
boolean$questionWorkedThrough

Definition at line 141 of file class.ilTestQuestionNavigationGUI.php.

142 {
143 $this->questionWorkedThrough = $questionWorkedThrough;
144 }

References $questionWorkedThrough.

◆ setRequestHintCommand()

ilTestQuestionNavigationGUI::setRequestHintCommand (   $requestHintCommand)
Parameters
string$requestHintCommand

Definition at line 271 of file class.ilTestQuestionNavigationGUI.php.

272 {
273 $this->requestHintCommand = $requestHintCommand;
274 }

References $requestHintCommand.

◆ setRevertChangesLinkTarget()

ilTestQuestionNavigationGUI::setRevertChangesLinkTarget (   $revertChangesLinkTarget)
Parameters
string

Definition at line 174 of file class.ilTestQuestionNavigationGUI.php.

175 {
176 $this->revertChangesLinkTarget = $revertChangesLinkTarget;
177 }

References $revertChangesLinkTarget.

◆ setShowHintsCommand()

ilTestQuestionNavigationGUI::setShowHintsCommand (   $showHintsCommand)
Parameters
string$showHintsCommand

Definition at line 287 of file class.ilTestQuestionNavigationGUI.php.

288 {
289 $this->showHintsCommand = $showHintsCommand;
290 }

References $showHintsCommand.

◆ setSkipQuestionLinkTarget()

ilTestQuestionNavigationGUI::setSkipQuestionLinkTarget (   $skipQuestionLinkTarget)
Parameters
string$skipQuestionLinkTarget

Definition at line 207 of file class.ilTestQuestionNavigationGUI.php.

208 {
209 $this->skipQuestionLinkTarget = $skipQuestionLinkTarget;
210 }

References $skipQuestionLinkTarget.

◆ setSubmitSolutionCommand()

ilTestQuestionNavigationGUI::setSubmitSolutionCommand (   $submitSolutionCommand)
Parameters
string$submitSolutionCommand

Definition at line 157 of file class.ilTestQuestionNavigationGUI.php.

158 {
159 $this->submitSolutionCommand = $submitSolutionCommand;
160 }

References $submitSolutionCommand.

Field Documentation

◆ $answerFreezingEnabled

ilTestQuestionNavigationGUI::$answerFreezingEnabled = false
private

◆ $anythingRendered

ilTestQuestionNavigationGUI::$anythingRendered = false
private

Definition at line 104 of file class.ilTestQuestionNavigationGUI.php.

Referenced by isAnythingRendered().

◆ $charSelectorEnabled

ilTestQuestionNavigationGUI::$charSelectorEnabled = false
private

◆ $discardSolutionButtonEnabled

ilTestQuestionNavigationGUI::$discardSolutionButtonEnabled = false
private

◆ $editSolutionCommand

ilTestQuestionNavigationGUI::$editSolutionCommand = ''
private

◆ $forceInstantResponseEnabled

ilTestQuestionNavigationGUI::$forceInstantResponseEnabled = false
private

◆ $hintRequestsExist

ilTestQuestionNavigationGUI::$hintRequestsExist = false
private

◆ $instantFeedbackCommand

ilTestQuestionNavigationGUI::$instantFeedbackCommand = ''
private

◆ $lng

ilTestQuestionNavigationGUI::$lng
protected

Definition at line 20 of file class.ilTestQuestionNavigationGUI.php.

Referenced by __construct().

◆ $questionMarked

ilTestQuestionNavigationGUI::$questionMarked = false
private

Definition at line 94 of file class.ilTestQuestionNavigationGUI.php.

Referenced by isQuestionMarked(), and setQuestionMarked().

◆ $questionMarkLinkTarget

ilTestQuestionNavigationGUI::$questionMarkLinkTarget = ''
private

◆ $questionWorkedThrough

ilTestQuestionNavigationGUI::$questionWorkedThrough = false
private

◆ $requestHintCommand

ilTestQuestionNavigationGUI::$requestHintCommand = ''
private

◆ $revertChangesLinkTarget

ilTestQuestionNavigationGUI::$revertChangesLinkTarget = ''
private

◆ $showHintsCommand

ilTestQuestionNavigationGUI::$showHintsCommand = ''
private

◆ $skipQuestionLinkTarget

ilTestQuestionNavigationGUI::$skipQuestionLinkTarget = ''
private

◆ $submitSolutionCommand

ilTestQuestionNavigationGUI::$submitSolutionCommand = ''
private

◆ CSS_CLASS_SUBMIT_BUTTONS

const ilTestQuestionNavigationGUI::CSS_CLASS_SUBMIT_BUTTONS = 'ilc_qsubmit_Submit'

Definition at line 15 of file class.ilTestQuestionNavigationGUI.php.

◆ SHOW_DISABLED_COMMANDS

const ilTestQuestionNavigationGUI::SHOW_DISABLED_COMMANDS = false

Definition at line 13 of file class.ilTestQuestionNavigationGUI.php.


The documentation for this class was generated from the following file: