ILIAS  release_8 Revision v8.24
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 25 of file class.ilTestQuestionNavigationGUI.php.

Constructor & Destructor Documentation

◆ __construct()

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

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

References $lng, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ getActionsHTML()

ilTestQuestionNavigationGUI::getActionsHTML ( )

Get the HTML of an actions menu below the title.

Returns
string

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

393 : string
394 {
395 $tpl = $this->getTemplate('actions');
396
397 include_once("Services/UIComponent/GroupedList/classes/class.ilGroupedListGUI.php");
398 $actions = new ilGroupedListGUI();
399 $actions->setAsDropDown(true, true);
400
401 if ($this->getQuestionMarkLinkTarget()) {
402 $actions->addEntry(
405 '',
406 '',
407 'ilTestQuestionAction',
408 'tst_mark_question_action'
409 );
410 $actions->addSeparator();
411 }
412
413 if ($this->getRevertChangesLinkTarget()) {
414 $actions->addEntry(
415 $this->lng->txt('tst_revert_changes'),
416 $this->getRevertChangesLinkTarget(),
417 '',
418 '',
419 'ilTestQuestionAction ilTestRevertChangesAction',
420 'tst_revert_changes_action'
421 );
422 } else {
423 $actions->addEntry(
424 $this->lng->txt('tst_revert_changes'),
425 '#',
426 '',
427 '',
428 'ilTestQuestionAction ilTestRevertChangesAction disabled',
429 'tst_revert_changes_action'
430 );
431 }
432
433 if ($this->isDiscardSolutionButtonEnabled()) {
434 $actions->addEntry(
435 $this->lng->txt('discard_answer'),
436 '#',
437 '',
438 '',
439 'ilTestQuestionAction ilTestDiscardSolutionAction',
440 'tst_discard_solution_action'
441 );
442 } else {
443 $actions->addEntry(
444 $this->lng->txt('discard_answer'),
445 '#',
446 '',
447 '',
448 'ilTestQuestionAction ilTestDiscardSolutionAction disabled',
449 'tst_discard_solution_action'
450 );
451 }
452
453 if ($this->getSkipQuestionLinkTarget()) {
454 $actions->addEntry(
455 $this->lng->txt('postpone_question'),
456 $this->getSkipQuestionLinkTarget(),
457 '',
458 '',
459 'ilTestQuestionAction',
460 'tst_skip_question_action'
461 );
462 } elseif (self::SHOW_DISABLED_COMMANDS) {
463 $actions->addEntry(
464 $this->lng->txt('postpone_question'),
465 '#',
466 '',
467 '',
468 'ilTestQuestionAction disabled',
469 'tst_skip_question_action'
470 );
471 }
472
473 if ($this->isCharSelectorEnabled()) {
474 $actions->addSeparator();
475 $actions->addEntry(
476 $this->lng->txt('char_selector_btn_label'),
477 '#',
478 '',
479 '',
480 'ilTestQuestionAction ilCharSelectorMenuToggle',
481 'ilCharSelectorMenuToggleLink'
482 );
483 }
484
485 // render the mark icon
486 if ($this->getQuestionMarkLinkTarget()) {
487 $this->renderActionsIcon(
488 $tpl,
491 'ilTestMarkQuestionIcon'
492 );
493 }
494
495 // render the action menu
496 include_once './Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
497 $list = new ilAdvancedSelectionListGUI();
498 $list->setSelectionHeaderClass('btn-primary');
499 $list->setId('QuestionActions');
500 $list->setListTitle($this->lng->txt("actions"));
501 $list->setStyle(1);
502 $list->setGroupedList($actions);
503 $tpl->setVariable('ACTION_MENU', $list->getHTML());
504
505 return $tpl->get();
506 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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(), ILIAS\Repository\lng(), and renderActionsIcon().

+ Here is the call graph for this function:

◆ getCheckButtonLabel()

ilTestQuestionNavigationGUI::getCheckButtonLabel ( )
private

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

585 : string
586 {
587 if ($this->isAnswerFreezingEnabled()) {
588 return 'submit_and_check';
589 }
590
591 return 'check';
592 }

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 565 of file class.ilTestQuestionNavigationGUI.php.

565 : string
566 {
567 if ($this->isQuestionWorkedThrough()) {
568 return 'edit_answer';
569 }
570
571 return 'answer_question';
572 }

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 131 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 513 of file class.ilTestQuestionNavigationGUI.php.

513 : string
514 {
515 // fau: testNav - add parameter for toolbar template purpose
516 $tpl = $this->getTemplate('toolbar');
517 // fau.
518 if ($this->getEditSolutionCommand()) {
519 $this->renderSubmitButton(
520 $tpl,
521 $this->getEditSolutionCommand(),
523 );
524 }
525
526 // fau: testNav - don't show the standard submit button.
527 // fau: testNav - discard answer is moved to the actions menu.
528 // fau: testNav - skip question (postpone) is moved to the actions menu.
529
530 if ($this->getInstantFeedbackCommand()) {
531 $this->renderSubmitButton(
532 $tpl,
534 $this->getCheckButtonLabel(),
536 );
537 }
538
539 if ($this->getRequestHintCommand()) {
540 $this->renderSubmitButton(
541 $tpl,
542 $this->getRequestHintCommand(),
544 );
545 }
546
547 if ($this->getShowHintsCommand()) {
548 $this->renderSubmitButton(
549 $tpl,
550 $this->getShowHintsCommand(),
551 'show_requested_question_hints'
552 );
553 }
554
555 // fau: testNav - question mark is moved to the actions menu.
556 // fau: testNav - char selector is moved to the actions menu.
557
558 if ($this->isAnythingRendered()) {
559 $this->parseNavigation($tpl);
560 }
561
562 return $tpl->get();
563 }
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 229 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 604 of file class.ilTestQuestionNavigationGUI.php.

604 : string
605 {
606 if ($this->isQuestionMarked()) {
607 return $this->lng->txt('tst_remove_mark');
608 }
609
610 return $this->lng->txt('tst_question_mark');
611 }

References isQuestionMarked(), and ILIAS\Repository\lng().

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 614 of file class.ilTestQuestionNavigationGUI.php.

614 : string
615 {
616 if ($this->isQuestionMarked()) {
617 return $this->lng->txt('tst_question_marked');
618 }
619
620 return$this->lng->txt('tst_question_not_marked');
621 }

References isQuestionMarked(), and ILIAS\Repository\lng().

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 624 of file class.ilTestQuestionNavigationGUI.php.

624 : string
625 {
626 if ($this->isQuestionMarked()) {
627 return ilUtil::getImagePath('marked.svg');
628 }
629
630 return ilUtil::getImagePath('marked_.svg');
631 }
static getImagePath(string $img, string $module_path="", string $mode="output", bool $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 326 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 594 of file class.ilTestQuestionNavigationGUI.php.

594 : string
595 {
596 if ($this->hintRequestsExist()) {
597 return 'button_request_next_question_hint';
598 }
599
600 return 'button_request_question_hint';
601 }

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 277 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 180 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 293 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 213 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 574 of file class.ilTestQuestionNavigationGUI.php.

574 : string
575 {
576 if ($this->isForceInstantResponseEnabled()) {
577 return 'submit_and_check';
578 }
579
580 // fau: testNav - rename the submit button to simply "Save"
581 return 'save';
582 // fau.
583 }

References isForceInstantResponseEnabled().

+ Here is the call graph for this function:

◆ getSubmitSolutionCommand()

ilTestQuestionNavigationGUI::getSubmitSolutionCommand ( )
Returns
string

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

References $submitSolutionCommand.

◆ getTemplate()

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

Get the template.

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

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

639 : ilTemplate
640 {
641 switch ($a_purpose) {
642 case 'toolbar':
643 return new ilTemplate(
644 'tpl.tst_question_navigation.html',
645 true,
646 true,
647 'Modules/Test'
648 );
649 default:
650 case 'actions':
651 return new ilTemplate(
652 'tpl.tst_question_actions.html',
653 true,
654 true,
655 'Modules/Test'
656 );
657 }
658 }
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 309 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 245 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 359 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 375 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 197 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 253 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 343 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 147 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 673 of file class.ilTestQuestionNavigationGUI.php.

674 {
675 $tpl->setCurrentBlock('buttons');
676 $tpl->parseCurrentBlock();
677 }

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 664 of file class.ilTestQuestionNavigationGUI.php.

665 {
666 $tpl->setCurrentBlock('question_related_navigation');
667 $tpl->parseCurrentBlock();
668 }

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 762 of file class.ilTestQuestionNavigationGUI.php.

763 {
764 $tpl->setCurrentBlock("actions_icon");
765 $tpl->setVariable("ICON_SRC", $iconSrc);
766 $tpl->setVariable("ICON_TEXT", $label);
767 $tpl->setVariable("ICON_CLASS", $cssClass);
768 $tpl->parseCurrentBlock();
769 }

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 683 of file class.ilTestQuestionNavigationGUI.php.

684 {
685 $tpl->setCurrentBlock("button_instance");
686 $tpl->setVariable("BUTTON_INSTANCE", $button->render());
687 $tpl->parseCurrentBlock();
688
689 $this->parseButtonsBlock($tpl);
690 $this->setAnythingRendered();
691 }

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 748 of file class.ilTestQuestionNavigationGUI.php.

749 {
750 $tpl->setCurrentBlock("submit_icon");
751 $tpl->setVariable("SUBMIT_ICON_CMD", $command);
752 $tpl->setVariable("SUBMIT_ICON_SRC", $iconSrc);
753 $tpl->setVariable("SUBMIT_ICON_TEXT", $label);
754 $tpl->setVariable("SUBMIT_ICON_CLASS", $cssClass);
755 $tpl->parseCurrentBlock();
756
757 $this->parseButtonsBlock($tpl);
758 $this->setAnythingRendered();
759 }

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 731 of file class.ilTestQuestionNavigationGUI.php.

732 {
733 $button = ilLinkButton::getInstance();
734 $button->setId($htmlId);
735 $button->addCSSClass($cssClass);
736 $button->setCaption($label);
737
738 $this->renderButtonInstance($tpl, $button);
739 }

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 716 of file class.ilTestQuestionNavigationGUI.php.

717 {
718 $button = ilLinkButton::getInstance();
719 $button->setUrl($href);
720 $button->setCaption($label);
721
722 $this->renderButtonInstance($tpl, $button);
723 }

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 699 of file class.ilTestQuestionNavigationGUI.php.

700 {
701 $button = ilSubmitButton::getInstance();
702 $button->setCommand($command);
703 $button->setCaption($label);
704 $button->setPrimary($primary);
705 $button->addCSSClass(self::CSS_CLASS_SUBMIT_BUTTONS);
706
707 $this->renderButtonInstance($tpl, $button);
708 }

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 269 of file class.ilTestQuestionNavigationGUI.php.

270 {
271 $this->answerFreezingEnabled = $answerFreezingEnabled;
272 }

References $answerFreezingEnabled.

◆ setAnythingRendered()

ilTestQuestionNavigationGUI::setAnythingRendered ( )
Parameters
boolean$buttonRendered

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

368 {
369 $this->anythingRendered = true;
370 }

Referenced by renderButtonInstance(), and renderIcon().

+ Here is the caller graph for this function:

◆ setCharSelectorEnabled()

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

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

384 {
385 $this->charSelectorEnabled = $charSelectorEnabled;
386 }

References $charSelectorEnabled.

◆ setDiscardSolutionButtonEnabled()

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

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

206 {
207 $this->discardSolutionButtonEnabled = $discardSolutionButtonEnabled;
208 }

References $discardSolutionButtonEnabled.

◆ setEditSolutionCommand()

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

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

140 {
141 $this->editSolutionCommand = $editSolutionCommand;
142 }

References $editSolutionCommand.

◆ setForceInstantResponseEnabled()

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

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

262 {
263 $this->forceInstantResponseEnabled = $forceInstantResponseEnabled;
264 }

References $forceInstantResponseEnabled.

◆ setHintRequestsExist()

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

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

318 {
320 }

References $hintRequestsExist, and hintRequestsExist().

+ Here is the call graph for this function:

◆ setInstantFeedbackCommand()

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

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

238 {
239 $this->instantFeedbackCommand = $instantFeedbackCommand;
240 }

References $instantFeedbackCommand.

◆ setQuestionMarked()

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

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

352 {
353 $this->questionMarked = $questionMarked;
354 }

References $questionMarked.

◆ setQuestionMarkLinkTarget()

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

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

335 {
336 $this->questionMarkLinkTarget = $questionMarkLinkTarget;
337 }

References $questionMarkLinkTarget.

◆ setQuestionWorkedThrough()

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

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

156 {
157 $this->questionWorkedThrough = $questionWorkedThrough;
158 }

References $questionWorkedThrough.

◆ setRequestHintCommand()

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

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

286 {
287 $this->requestHintCommand = $requestHintCommand;
288 }

References $requestHintCommand.

◆ setRevertChangesLinkTarget()

ilTestQuestionNavigationGUI::setRevertChangesLinkTarget (   $revertChangesLinkTarget)
Parameters
string

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

189 {
190 $this->revertChangesLinkTarget = $revertChangesLinkTarget;
191 }

References $revertChangesLinkTarget.

◆ setShowHintsCommand()

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

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

302 {
303 $this->showHintsCommand = $showHintsCommand;
304 }

References $showHintsCommand.

◆ setSkipQuestionLinkTarget()

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

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

222 {
223 $this->skipQuestionLinkTarget = $skipQuestionLinkTarget;
224 }

References $skipQuestionLinkTarget.

◆ setSubmitSolutionCommand()

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

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

172 {
173 $this->submitSolutionCommand = $submitSolutionCommand;
174 }

References $submitSolutionCommand.

Field Documentation

◆ $answerFreezingEnabled

ilTestQuestionNavigationGUI::$answerFreezingEnabled = false
private

◆ $anythingRendered

ilTestQuestionNavigationGUI::$anythingRendered = false
private

Definition at line 118 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 34 of file class.ilTestQuestionNavigationGUI.php.

Referenced by __construct().

◆ $questionMarked

ilTestQuestionNavigationGUI::$questionMarked = false
private

Definition at line 108 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 29 of file class.ilTestQuestionNavigationGUI.php.

◆ SHOW_DISABLED_COMMANDS

const ilTestQuestionNavigationGUI::SHOW_DISABLED_COMMANDS = false

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


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